Sorted tree HW problem

hi, i was wondering if someone could give me tips or pointer or even the solution :). all help is appreciated
if you know of a tutorial besides the basic java one that would be gr8 too
(2) Write a class named my_SortedTree with three methods.
(i) Given a sequence of numbers (total number of numbers will be the full tree size 2n-1), sort them in an increasing order.
(ii) Store the sorted sequence in a full binary tree so that use the �in order� traverse algorithm can print them in an increasing order. Note that your tree MUST be a full tree.
For example, given �14 23 13 18 11 26 16� as input, your program should sort them first, so that the sequence is �11 13 14 16 18 23 26�, then insert those seven numbers into tree structure one by one, it should be 1623181311 1426
(iii) Use the level-order traverse algorithm to print all of them.

hi, i was wondering if someone could give me tips or
pointer or even the solution :). all help is
appreciated
if you know of a tutorial besides the basic java one
that would be gr8 too
(2) Write a class named my_SortedTree with three
methods.
(i) Given a sequence of numbers (total number of
numbers will be the full tree size 2n-1), sort them
in an increasing order.
(ii) Store the sorted sequence in a full binary tree
so that use the �in order� traverse algorithm can
print them in an increasing order. Note that your
tree MUST be a full tree.
For example, given �14 23 13 18 11 26 16� as input,
your program should sort them first, so that the
sequence is �11 13 14 16 18 23 26�, then insert those
seven numbers into tree structure one by one, it
should be 1623181311 1426
(iii) Use the level-order traverse algorithm to print
all of them.
Here is a link to a pretty good tutorial example of ADT's in Java.
It covers stacks, queues, Binary Search Trees, and much more...
IMHO I would work through some of the examples and even diagram each step in the areas that are tough to visualize.
JJ

Similar Messages

  • Apple Senior tech lady deleted all my external drive data while sorting out other problem. How can I restore all my photos , music etc back to my Mac Pro?(I am so scared, I haven't connected to sync! Please help)

    Apple Senior tech lady deleted all my external drive data while sorting out other problem. How can I restore all my photos , music etc back to my Mac Pro?(I am so scared, I haven't connected iPhone to sync! Please help)

    It was tele tech. I couldn't open my Page Numbers etc. Frist tech chat idiot - following dumping few things in bin, asked me yo upgrade to Yosemite. But the problem still persists. This morning I was asked to do it via telephone and like yesterday, after wasting 20 min, I was put to this apparent Tech Queen ( my foot!). She eventually decided to reinstall  Yosemite asked me to connect my external drive while I connected to her. She was moving cursor asking me to move files and delete and I followed her like a dummy. It took 3/4 hours and she called me 3 times once the lengthy process was completed. I suspected from the beginng for the fact that why should be asking me to click all my backup from the very beginning! Eventually she said I deleted... Or someone else or may be my children ! It was a blatant lie. I run my small business from home and I was simply staying in front of the Mac whole day! Children were at school. Then she said I must have used another computer! I only have laptop and the iPad. I will talk to their manager first thing in the morning. In the mean time please let me know as to how can I transfer photos, music etc back to my laptop from my Iphone and IPad .? I am will connect to laptop as I am worried the new BLANK iPhoto may supersede iphone/iPad stuff? Will it? Please let me know. I am not a very tech savvy person. My son who could help me, is in Manchester Uni and Inam in London.

  • Help me sort out the problems with Java 2 SDK SE

    I install Java SDK 2 standard Eddition version 1.4 in my computer (Window NT4). When I test the installation by typing in "java -version", it displays the following message.
    C:\JavaPractice>java -version
    java version "1.4.0"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-b92)
    Java HotSpot(TM) Client VM (build 1.4.0-b92, mixed mode)
    But, When I compile a simple programme, it doesn't work and displays the following message.
    C:\JavaPractice>javac HelloDan.java
    The name specified is not recognized as an
    internal or external command, operable program or batch file.
    Could anybody help me sort out the problem, Please?

    i might guess that you have j2sdk1.4.0\jre\bin on your PATH, but not j2sdk1.4.0\bin ...
    Larry

  • HT202159 I am unable to download and always asking password after entering the password  also asking same question please help  me to sort out  this problem.

    I am unable to download and always asking the password it's ok for the once and it's asking more and no results only repeating the same so I am unable to download please help me to sort out this problem and my request please sort out from your side  or let me guide .

    Thanks Eric for responding.
    I checked and it does not appear in the Applications folder.
    I tried yesterday on an ethernet connection with a download speed of 2 Mbps but, unfortunately the connection died(It happened from the ISP end, which is out of my control) in between after which there was no trace of the download that happened for so long(till the internet connection death). 
    One more serious query which I am unable to understand. If the internet connection, dies in the midst of the download is in progress why is it so that the state does not persist and one has to restart the entire process again. Is there no solution for this?
    I tried so many times and its the same case after some amount of download it vanishes. So many unsuccessful attempts. I am ****** off now. Is it not possible to see Mavericks? Why does different machines of Apple behave differently? Somewhere it goes smoothly and somewhere like my mine. Why did not Apple release a non apple store version? Is this not a bad sign of letting the users struggle when something is being offered for free?
    The reason I asked as whether we can download the .app of Mavericks is that, there are so many applications that I have downloaded web and have installed. All that works fine. Can't we do the same here? You download a copy of Mavericks installer application and upload it for me in Google drive or like online storage places which can be downloaded and used by me? Help me understand.
    Thanks again.

  • I have a Mac mini Snow Leopard. In Numbers the grid lines are so faint that they are barely visible. Please could someone help me sort out this problem.

    I have a Mac mini Snow Leopard. In Numbers the grid lines are so faint that they are barely visible. Pleease could someone help me sort out this problem?

    The User Manual has this:
    Formatting Table Cell Borders
    You can change the line thickness and color of table cell borders. Or you can hide the border of any cell.
    To format table cell borders:
    1 Select the cell border segments you want to format.
    2 Use the controls in the format bar or in the Table inspector.
    Click to choose a stroke color.
    Click to choose a stroke style.
    Click to choose a line thickness.
    Stroke pop-up menu:  Lets you choose a stroke style. Choose None to hide borders.
    Line thickness:  Controls the thickness of the stroke.
    Color well:  Lets you choose a stroke color.
    When you click the color well in the format bar, a color matrix appears. Select a color by clicking it in the matrix, or click Show Colors to open the Colors window for additional color options.
    When you click the color well in the Table inspector, the Colors window opens.
    User Guide: http://manuals.info.apple.com/en_US/Numbers09_UserGuide.pdf

  • How to sort out your problems with the os 4 upgrade.

    I'm in the UK, and I am an Orange customer. I have just been in contact with an amazing guy called Lee, who has sorted my problem for me. His advice.......
    go into
    Settings, general, scroll down to bottom of the screen to Reset, and tap on it.
    Go to 3rd option, Reset Network Settings and tap on it, a red box will appear, tap to accept. Screen will close and Apple logo will appear, LEAVE to power up on its own, and re-enter your wi-fi connection password information.
    If this fails to cure your problem, Connect your iphone to a different computer,
    When your iphone shows up in itunes, click on it and do a RESTORE WITHOUT BACKUP, leave until your phone has restored and then plug into your own computer. You can now back up from your own computer information
    Hope this solves our problems

    Apple does not provide support here.
    This is a users forum.
    Everyone here is a user like yourself.
    If you would like support from Apple you can contact them by phone or online.

  • The left half of the speaker on my iPhone 5 doesn't work when I listen to music or watch videos, it's it the phone(only had it for 3 months) or is it some sort of software problem?

    I've had the iPhone 5 for about 3 or 4 months and today I noticed that no sound comes out of the left side of the speaker when I'm listening to music or watching something on Netflix
    Is it a problem with the actual phone or is it some sort of glitch?

    If you are referring to the "speakers" along the bottom, there is only one speaker and one microphone.

  • Sorting tree with Sortset/Treeset

    Have anyone tried sorting a jtrees nodes using sortset or treeset? I just want the children for each directory in my tree to be sorted. Collections like treeset and sortset should do the trick, but i have failed in my quest for the right solution.
    Can anyone please help me. I have been searching the forum, and there must be better ways of sorting a jtree than making large functions or subclasses..
    Thank you for helping me.
    Tobbmaister

    I have my own answer.
    When you build a tree, regardles if it's from a database, files og unix-enviroment, this will work.
    Gather all information in collections. For each parent( if you have any, get all children. ) ( this is before you start adding nodes to root.)
    use a while( children.hasNext ) and add one and one element to a TreeSort.
    When all children are in TreeSort, simlply use the getIterator method from TreeSort, and a sorted iterator will be returned.
    Use this iterator and add childrens to parent.
    This worked for me.

  • XML Tree Parsing problems

    I am trying to make a program that will read the tree of an xml file and later store the data in a different format...
    At the moment it reads part of the tree. but then a null pointer exception occurs on the line marked (***) in the .java file attached.
    It starts at the base element ('servers' in this case) then finds if it has child nodes, if so it stores them, again and again untill it finds text, it will then print the text to screen, and remove the child from the previous node. If a node no longer has any children it is removed from the list and then the next node is found...
    The problem being is that is isnt correctly working, as some of the nodes in the pastNodes arraylist are being replaced by one of their child nodes....so when it comes to the point where the list gets shorter and the next node needs to be found it has an incorrect tree list in pastNodes and dies on me.
    The reason for doing it like this is so that i can list the values in a tree like format in an array (eventually) such as 'servers.server.ComputerName' has value 'Bobs_PC' etc. as the program that wrote this leaves multiple smae named variables with different types of value...e.g. like 100 'Name' tags but some refer to a drive name and others to services names.
    Any ideas?
    Cheers for any help.
    Here is my code...sorry that its so long :(
    public void read(String xmlToRead){
              System.out.print("\n* Reading '"+xmlToRead+"'...");
              try {
         DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance();
         DocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder();
         Document doc = docBuilder.parse(new File(xmlToRead));
         // normalize text representation
         doc.getDocumentElement ().normalize ();
         NodeList listOfNodes = doc.getElementsByTagName("servers");
         ArrayList pastNodes= new ArrayList();
         pastNodes.add(listOfNodes.item(0));
         while(((Node) pastNodes.get(pastNodes.size()-1)).hasChildNodes()){
              System.out.println("\n------");
              //stores all new nodes with children
              if(((Node) pastNodes.get(pastNodes.size()-1)).getFirstChild().getNodeName() != "#text"){
                   pastNodes.add(((Node) pastNodes.get(pastNodes.size()-1)).getFirstChild());
                   System.out.println("NODE ADDED");
              System.out.println("pastNodes Path:");
              int x=0;
              while(x<pastNodes.size()){
                   System.out.println(x+": "+((Node) pastNodes.get(x)).getNodeName());
                   x++;
                   //print the text value
              Node child = ((Node) pastNodes.get(pastNodes.size()-1)).getFirstChild();
              //*** NULL POINTER HERE
              //System.out.println(child.getNodeName()+" / "+child.getNodeType());
              if(child != null && child.getNodeName()=="#text"){System.out.println("Value: "+child.getNodeValue());}
              //remove child node from parent once read
              if(((Node) pastNodes.get(pastNodes.size()-1)).hasChildNodes()){
                   Node newNode = ((Node) pastNodes.get(pastNodes.size()-1)).removeChild(child);
                   pastNodes.remove(pastNodes.size()-1);
                   System.out.println("Child Removed: "+child.getNodeName());
                   pastNodes.add(newNode);
                   //deletes a node from list if it does not have any more children.
                   if(!((Node) pastNodes.get(pastNodes.size()-1)).hasChildNodes()){
                        System.out.println("Removed Past Node : "+(pastNodes.size()-1)+"/"+((Node) pastNodes.get(pastNodes.size()-1)).getNodeName());
                        pastNodes.remove(pastNodes.size()-1);
         System.out.println(((Node) pastNodes.get(pastNodes.size()-1)).hasChildNodes());
         }catch (SAXParseException err) {
         System.out.println ("** Parsing error" + ", line " + err.getLineNumber () + ", uri " + err.getSystemId ());
         System.out.println(" " + err.getMessage ());
         }catch (SAXException e) {
         Exception x = e.getException ();
         ((x == null) ? e : x).printStackTrace ();
         }catch (Throwable t) {
         t.printStackTrace ();
              System.out.print("Done\n");
    ** And a snippet of the output at the console

    Here is my code...sorry that its so long :(There is no problem if the code is long. But atleast it should be formatted to help us read it.
    Node child = ((Node) pastNodes.get(pastNodes.size()-
    1)).getFirstChild();
              //*** NULL POINTER HERE
    //System.out.println(child.getNodeName()+"
    deName()+" / "+child.getNodeType());I think you get the NullPointerException when you call a method on the child node. The getFirstChild() method could return null if there is no child node. It is always good to check for nulls.

  • Tree component problem

    The follow Exception is threw if I put a Tree component in any page in one of my project :
    java.net.MalformedURLException: no protocol: /layout/layout.dtd
    stack trace:
    java.net.MalformedURLException: no protocol: /layout/layout.dtd     
    at com.sun.rave.web.ui.renderer.template.xml.XMLLayoutDefinitionManager.getLayoutDefinition(XMLLayoutDefinitionManager.java:194)     at com.sun.rave.web.ui.component.TemplateComponentBase.getLayoutDefinition(TemplateComponentBase.java:150)     at com.sun.rave.web.ui.renderer.template.TemplateRenderer.encodeBegin(TemplateRenderer.java:73)     at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:683)     at javax.faces.webapp.UIComponentTag.encodeBegin(UIComponentTag.java:591)     at javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:543)     at org.apache.jsp.index_jsp._jspx_meth_ui_tree_0(index_jsp.java:322)     at org.apache.jsp.index_jsp._jspx_meth_ui_form_0(index_jsp.java:256)     at org.apache.jsp.index_jsp._jspx_meth_ui_body_0(index_jsp.java:231)     at org.apache.jsp.index_jsp._jspx_meth_ui_html_0(index_jsp.java:169)     at org.apache.jsp.index_jsp._jspx_meth_ui_page_0(index_jsp.java:146)     at org.apache.jsp.index_jsp._jspx_meth_f_view_0(index_jsp.java:119)     at org.apache.jsp.index_jsp._jspService(index_jsp.java:89)     at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:105)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)     at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:336)     at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:297)     at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:247)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)     at sun.reflect.GeneratedMethodAccessor183.invoke(Unknown Source)     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)     at java.lang.reflect.Method.invoke(Method.java:585)     at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)     at java.security.AccessController.doPrivileged(Native Method)     at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)     at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)     at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:257)     at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)     at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:161)     at java.security.AccessController.doPrivileged(Native Method)     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)     at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:723)     at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:482)     at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:417)     at org.apache.catalina.core.ApplicationDispatcher.access$000(ApplicationDispatcher.java:80)     at org.apache.catalina.core.ApplicationDispatcher$PrivilegedForward.run(ApplicationDispatcher.java:95)     at java.security.AccessController.doPrivileged(Native Method)     at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:313)     at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322)     at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:130)     at com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.renderView(ViewHandlerImpl.java:311)     at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)     at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:221)     at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)     at javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)     at java.lang.reflect.Method.invoke(Method.java:585)     at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)     at java.security.AccessController.doPrivileged(Native Method)     at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)     at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)     at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:257)     at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)     at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:161)     at java.security.AccessController.doPrivileged(Native Method)     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)     at com.sun.rave.web.ui.util.UploadFilter.doFilter(UploadFilter.java:194)     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:210)     at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)     at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:161)     at java.security.AccessController.doPrivileged(Native Method)     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:263)     at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)     at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:225)     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:173)     at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)     at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:132)     at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)     at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:933)     at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:189)     at com.sun.enterprise.web.connector.grizzly.ProcessorTask.doProcess(ProcessorTask.java:604)     at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:475)     at com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:371)     at com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:264)     at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:281)     at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:83)
    Caused by: java.net.MalformedURLException: no protocol: /layout/layout.dtd     
    at java.net.URL.<init>(URL.java:567)     at java.net.URL.<init>(URL.java:464)     at java.net.URL.<init>(URL.java:413)     at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(XMLEntityManager.java:968)     at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startEntity(XMLEntityManager.java:905)     at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startDTDEntity(XMLEntityManager.java:872)     at com.sun.org.apache.xerces.internal.impl.XMLDTDScannerImpl.setInputSource(XMLDTDScannerImpl.java:282)     at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(XMLDocumentScannerImpl.java:1021)     at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:368)     at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:834)     at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)     at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148)     at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:250)     at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:292)     at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:123)     at com.sun.rave.web.ui.renderer.template.xml.XMLLayoutDefinitionReader.read(XMLLayoutDefinitionReader.java:146)     at com.sun.rave.web.ui.renderer.template.xml.XMLLayoutDefinitionManager.getLayoutDefinition(XMLLayoutDefinitionManager.java:190)     ... 82 more
    Message was edited by:
    hugebrush
    Message was edited by:
    hugebrush

    hello
    you wrote:
    >>Problem above just occurs when the application runing in bundled Sun Application Server PE 8.2 ...
    How solve this problem with SAS PE8.2
    I tested my app (with tree component) in Tomcat, the app not functioned normally.
    I don't know, how solve this problem.
    I think, it's not correctly to edit the webui.jar file.
    See
    http://forum.sun.com/jive/thread.jspa?forumID=123&threadID=98154
    Thank you.

  • Tree component problem plz help me

    Hi all,
    tree component is working perfectly. But according to my requirement i need to sort the date in tree.
    Iam trying that since 2 days but not able to find any solution.
    can any one help me plz.
    Thanks in advance.

    Check this thread:
    ADF Sortable TreeTable
    This would provide the required inputs for sorting the tree.
    Thanks,
    Navaneeth

  • How can I get BT to listen & sort out a problem no...

    Hi
    Been having problems since Sep 2012 when I ordered my broadband & land line package. Paid in advance for 1 years line rental to get the discount. My broadband etc. never got going. Could not find out why. Since then has been one thing after another trying to sort. BT now demanding more money from me and will not listen to me re how to sort this out and instead want to engage a debt collection company/ take me to court for something that has come about due to their own negligence/competence issues. How do I get in communication with someone who will listen, explain to me where my broadband package is and recognise the contribution of BT to this mess & help sort it out? For my endeavours - I've been past from pillar to post - Extraordinary!
    Thank you.

    Dear Stephanie
    Events thus far –
    Sep 12 – I tried to purchase the all in broadband, telephone line rental package advertised by BT at the time. After a number of attempts I achieved this and took the discount option to pay for a year’s line rental in advance. (I have the copy of the order confirmation and monies paid).
    The new router did not arrive so made numerous calls but could not establish status/why my router had not arrived or how can we sort this out.
    I sent in a complaint over the BT web site. I received a complaint ref no. Saying we will get back to you in 72 hrs. I heard no more! I then sent a separate email saying the same – what’s happening/how can we sort etc., to a member of staff @ BT I had been given to understand might help. I heard nothing. I was getting nowhere with BT who seemed at a loss to explain, despite my own endeavours to acquire the service I desired as was advertised. I was left with the purchase order confirmation and only the complaints acknowledgment as formal status – Outstanding/unresolved as far as I was concerned & had gotton lost in the myriad of departments/you need to call this number circle.
    I considered that my only option to get my own broadband & line service was to go elsewhere and proceeded to do so. We are still in the month of Sep 12.
    Oct 12 – By around 4th Oct I had my service at last albeit from another provider. It was for a similar ‘all in’ package where I again paid up front for discounted years line rental. I have itemised phone call bills from the new provider from this date.
    I was still waiting to hear from BT re my September experience but heard nothing.
    Nov 12 – Mid Nov I received a bill from BT for phone line charges for the period of 10th Nov 12 to 9th Feb 13! The letter went on to say these monies will be taken from my account on 24th November. Not being able to make sense of this, I phoned BT on 20th Nov 12 @ 3.50pm and explained the aforementioned. ‘ok, I’ll look into and come back to you’ or similar was how it was left. I got no further advice or explanation.
    Notwithstanding my call on the 20th Nov, I now understand that BT went on to collect the monies for the charges to Feb 13 only not from my account!!
    Why did this money get taken?? I still do not know despite my trying to find out and resolve.
    Dec 12 – I understand this third party who had inexplicably had this money taken went on to recall the money (understandable) via the banking indemnity scheme. Meanwhile BT (inexplicably) credited this third parties account by £52.14! Around this time I received a credit not saying my bank account will be credited by the same!
    Some of these Dec 12 goings on I have only recently established(Feb 13). Mad.....
    Feb 13 – I receive a letter from BT dated 5th Feb demanding immediate payment for the monies that were called back by the third party last Dec!
    On 6th Feb I get a letter from the Debt Recovery Unit giving me 10 days to pay these charges (line rental etc. from Nov 12 to Feb 13!) or else the full might of BT’s legal team & costs will descend upon me!
    I can’t explain what it has been like since receiving that letter and my almost infinite attempts and correspondence with BT to sort this out. I’ve been battered with the ‘we’re right/you’re wrong’ attitude with no recognition or explanation from BT as to why they took the money in the first place or why they did not supply my, still outstanding order last September.
    I have since established the BT were aware of my action to move to another provider by at least 25th Sep 12!!
    I’ve tried & tried here, well beyond the call of duty spending something like 30 man hours on this to resolve. I’m left waiting for the knock at the door from BT’s legal team.
    Yours,
    Wits end am I!

  • Tree Query Problem

    I've problem with tree query where if a level > 3 the result for top level is incorrect. 
    Here's the query with correct result where level of depth just 3 level :
    --select *from tblBOMStructed
    DECLARE @BOMStructure TABLE
    PartNumber varchar(14)not null ,
    Descript varchar(50)not null,
    Qty integer not null default 0,
    Price Decimal (10,2) default 0,
    TotalPrice Decimal (10,2) default 0,
    ItemNumber varchar(14) not null primary key
    INSERT @BOMStructure
    (PartNumber ,Descript ,Qty ,Price ,ItemNumber)
    VALUES ('00150060060005','BASIC TANK',1,0,'1'),
    ('11012142200503','SHELL',1,789.89,'1.1'),
    ('12052140503','TOP CONE',1,226.75,'1.2'),
    ('13052140503','BOTTOM CONE',1,226.75,'1.3'),
    ('140104116508','PIPE LEG',3,39.75,'1.4'),
    ('15004104','BALL FEET',3,0,'1.5'),
    ('1510413504','SLEEVE',1,18.03,'1.5.1'),
    ('1524809510','ADJUSTABLE BOLT',1,12.82,'1.5.2'),
    ('1530411604','BASE',1,7.27,'1.5.3')
    -- Mengupdate
    update @BOMStructure
    set TotalPrice = 0
    where PartNumber in
    select PartNumber
    from @BOMStructure
    -- Mengisi Table Total Price
    update @BOMStructure
    set TotalPrice = Price * Qty;
    -- Mengupdate Sub Assy Dan Main Assy di kalikan dengan qty
    WITH cteParents(ItemNumber)
    AS (
    SELECT ItemNumber
    FROM @BOMStructure
    WHERE partnumber in (
    select e1.PartNumber from @BOMStructure e1,@BOMStructure e2
    where e2.ItemNumber > e1 .ItemNumber
    and e2.ItemNumber < e1 .ItemNumber + 'Z'
    and e1 .ItemNumber not like '1'
    and e2 .ItemNumber Not like '1'
    group by e1.PartNumber
    ), cteSource(ItemNumber, TotalPrice)
    AS (
    SELECT p.ItemNumber,
    SUM(COALESCE(s.TotalPrice , 0)) AS TotalPrice
    FROM cteParents AS p
    LEFT JOIN (
    SELECT ItemNumber AS Original,
    CASE
    WHEN ItemNumber LIKE '%.%' THEN ItemNumber
    ELSE '1.' + ItemNumber
    END AS ItemNumber,
    TotalPrice = Price * Qty
    FROM @BOMStructure
    ) AS s ON s.ItemNumber LIKE p.ItemNumber + '.%'
    OR p.ItemNumber = '1'--'0'
    WHERE s.Original NOT IN (SELECT ItemNumber FROM cteParents)
    GROUP BY p.ItemNumber
    UPDATE s
    SET s.TotalPrice = q.TotalPrice * s.Qty
    FROM @BOMStructure AS s
    INNER JOIN cteSource AS q ON q.ItemNumber = s.ItemNumber;
    --Mengupdate Harga Main Assy menggunakan function With
    with cteLevel(Lvl, PartNumber, TotalPrice)
    AS
    select LEN (ItemNumber)- LEN(REPLACE(ItemNumber, '.', ''))as Lvl, PartNumber,TotalPrice from @BOMStructure
    update s
    set s.TotalPrice = (select sum(TotalPrice )from cteLevel as PriceLvl1 where Lvl = 1)
    from @BOMStructure as s
    INNER JOIN cteLevel AS q ON q.PartNumber = s.PartNumber
    where s.ItemNumber = '1'
    update @BOMStructure
    set Price = TotalPrice / Qty
    --Kondisi Part Number yang merupakan Sub Assembly
    where PartNumber in (select e1.PartNumber from @BOMStructure e1,@BOMStructure e2
    where e2.ItemNumber > e1 .ItemNumber
    and e2.ItemNumber < e1 .ItemNumber + 'Z'
    and e1 .ItemNumber not like '1'
    and e2 .ItemNumber Not like '1'
    group by e1.PartNumber )
    update @BOMStructure
    set Price = TotalPrice / Qty
    where ItemNumber = '1'
    select PartNumber, Descript , Qty , Price , TotalPrice , ItemNumber
    from @BOMStructure
    Here's the query with incorrect result where level of depth > 3 level :
    --select *from tblBOMStructed
    DECLARE @BOMStructure TABLE
    PartNumber varchar(14)not null ,
    Descript varchar(50)not null,
    Qty integer not null default 0,
    Price Decimal (10,2) default 0,
    TotalPrice Decimal (10,2) default 0,
    ItemNumber varchar(14) not null primary key
    INSERT @BOMStructure
    (PartNumber ,Descript ,Qty ,Price ,ItemNumber)
    VALUES ('14300100001029','ATMOSPHERIC TANK',1,0,'1'),
    ('00150060060005','BASIC TANK',1,0,'1.1'),
    ('11012142200503','SHELL',1,789.89,'1.1.1'),
    ('12052140503','TOP CONE',1,226.75,'1.1.2'),
    ('13052140503','BOTTOM CONE',1,226.75,'1.1.3'),
    ('140104116508','PIPE LEG',3,39.75,'1.1.4'),
    ('15004104','BALL FEET',3,0,'1.1.5'),
    ('1510413504','SLEEVE',1,18.03,'1.1.5.1'),
    ('1524809510','ADJUSTABLE BOLT',1,12.82,'1.1.5.2'),
    ('1530411604','BASE',1,7.27,'1.1.5.3')
    -- Mengupdate
    update @BOMStructure
    set TotalPrice = 0
    where PartNumber in
    select PartNumber
    from @BOMStructure
    -- Mengisi Table Total Price
    update @BOMStructure
    set TotalPrice = Price * Qty;
    -- Mengupdate Sub Assy Dan Main Assy di kalikan dengan qty
    WITH cteParents(ItemNumber)
    AS (
    SELECT ItemNumber
    FROM @BOMStructure
    WHERE partnumber in (
    select e1.PartNumber from @BOMStructure e1,@BOMStructure e2
    where e2.ItemNumber > e1 .ItemNumber
    and e2.ItemNumber < e1 .ItemNumber + 'Z'
    and e1 .ItemNumber not like '1'
    and e2 .ItemNumber Not like '1'
    group by e1.PartNumber
    ), cteSource(ItemNumber, TotalPrice)
    AS (
    SELECT p.ItemNumber,
    SUM(COALESCE(s.TotalPrice , 0)) AS TotalPrice
    FROM cteParents AS p
    LEFT JOIN (
    SELECT ItemNumber AS Original,
    CASE
    WHEN ItemNumber LIKE '%.%' THEN ItemNumber
    ELSE '1.' + ItemNumber
    END AS ItemNumber,
    TotalPrice = Price * Qty
    FROM @BOMStructure
    ) AS s ON s.ItemNumber LIKE p.ItemNumber + '.%'
    OR p.ItemNumber = '1'--'0'
    WHERE s.Original NOT IN (SELECT ItemNumber FROM cteParents)
    GROUP BY p.ItemNumber
    UPDATE s
    SET s.TotalPrice = q.TotalPrice * s.Qty
    FROM @BOMStructure AS s
    INNER JOIN cteSource AS q ON q.ItemNumber = s.ItemNumber;
    --Mengupdate Harga Main Assy menggunakan function With
    with cteLevel(Lvl, PartNumber, TotalPrice)
    AS
    select LEN (ItemNumber)- LEN(REPLACE(ItemNumber, '.', ''))as Lvl, PartNumber,TotalPrice from @BOMStructure
    update s
    set s.TotalPrice = (select sum(TotalPrice )from cteLevel as PriceLvl1 where Lvl = 1)
    from @BOMStructure as s
    INNER JOIN cteLevel AS q ON q.PartNumber = s.PartNumber
    where s.ItemNumber = '1'
    update @BOMStructure
    set Price = TotalPrice / Qty
    --Kondisi Part Number yang merupakan Sub Assembly
    where PartNumber in (select e1.PartNumber from @BOMStructure e1,@BOMStructure e2
    where e2.ItemNumber > e1 .ItemNumber
    and e2.ItemNumber < e1 .ItemNumber + 'Z'
    and e1 .ItemNumber not like '1'
    and e2 .ItemNumber Not like '1'
    group by e1.PartNumber )
    update @BOMStructure
    set Price = TotalPrice / Qty
    where ItemNumber = '1'
    select PartNumber, Descript , Qty , Price , TotalPrice , ItemNumber
    from @BOMStructure
    Could some explain me how to solve this problem. 
    Regards,
    Afri

    --select *from tblBOMStructed 
    DECLARE @BOMStructure TABLE (
    PartNumber VARCHAR(14) NOT NULL
    ,Descript VARCHAR(50) NOT NULL
    ,Qty INTEGER NOT NULL DEFAULT 0
    ,Price DECIMAL(10, 2) DEFAULT 0
    ,TotalPrice DECIMAL(10, 2) DEFAULT 0
    ,ItemNumber VARCHAR(14) NOT NULL PRIMARY KEY
    INSERT @BOMStructure (
    PartNumber
    ,Descript
    ,Qty
    ,Price
    ,ItemNumber
    VALUES (
    '14300100001029'
    ,'ATMOSPHERIC TANK'
    ,1
    ,0
    ,'1'
    INSERT @BOMStructure (
    PartNumber
    ,Descript
    ,Qty
    ,Price
    ,ItemNumber
    VALUES (
    '00150060060005'
    ,'BASIC TANK'
    ,1
    ,0
    ,'1.1'
    INSERT @BOMStructure (
    PartNumber
    ,Descript
    ,Qty
    ,Price
    ,ItemNumber
    VALUES (
    '11012142200503'
    ,'SHELL'
    ,1
    ,789.89
    ,'1.1.1'
    INSERT @BOMStructure (
    PartNumber
    ,Descript
    ,Qty
    ,Price
    ,ItemNumber
    VALUES (
    '12052140503'
    ,'TOP CONE'
    ,1
    ,226.75
    ,'1.1.2'
    INSERT @BOMStructure (
    PartNumber
    ,Descript
    ,Qty
    ,Price
    ,ItemNumber
    VALUES (
    '13052140503'
    ,'BOTTOM CONE'
    ,1
    ,226.75
    ,'1.1.3'
    INSERT @BOMStructure (
    PartNumber
    ,Descript
    ,Qty
    ,Price
    ,ItemNumber
    VALUES (
    '140104116508'
    ,'PIPE LEG'
    ,3
    ,39.75
    ,'1.1.4'
    INSERT @BOMStructure (
    PartNumber
    ,Descript
    ,Qty
    ,Price
    ,ItemNumber
    VALUES (
    '15004104'
    ,'BALL FEET'
    ,3
    ,0
    ,'1.1.5'
    INSERT @BOMStructure (
    PartNumber
    ,Descript
    ,Qty
    ,Price
    ,ItemNumber
    VALUES (
    '1510413504'
    ,'SLEEVE'
    ,1
    ,18.03
    ,'1.1.5.1'
    INSERT @BOMStructure (
    PartNumber
    ,Descript
    ,Qty
    ,Price
    ,ItemNumber
    VALUES (
    '1524809510'
    ,'ADJUSTABLE BOLT'
    ,1
    ,12.82
    ,'1.1.5.2'
    INSERT @BOMStructure (
    PartNumber
    ,Descript
    ,Qty
    ,Price
    ,ItemNumber
    VALUES (
    '1530411604'
    ,'BASE'
    ,1
    ,7.27
    ,'1.1.5.3'
    -- Mengupdate 
    UPDATE @BOMStructure
    SET TotalPrice = 0
    WHERE PartNumber IN (
    SELECT PartNumber
    FROM @BOMStructure
    -- Mengisi Table Total Price
    UPDATE @BOMStructure
    SET TotalPrice = Price * Qty;
    -- Mengupdate Sub Assy Dan Main Assy di kalikan dengan qty
    WITH cteParents (ItemNumber)
    AS (
    SELECT ItemNumber
    FROM @BOMStructure
    WHERE partnumber IN (
    SELECT e1.PartNumber
    FROM @BOMStructure e1
    ,@BOMStructure e2
    WHERE e2.ItemNumber > e1.ItemNumber
    AND e2.ItemNumber < e1.ItemNumber + 'Z'
    AND e1.ItemNumber NOT LIKE '1'
    AND e2.ItemNumber NOT LIKE '1'
    GROUP BY e1.PartNumber
    ,cteSource (
    ItemNumber
    ,TotalPrice
    AS (
    SELECT p.ItemNumber
    ,SUM(COALESCE(s.TotalPrice, 0)) AS TotalPrice
    FROM cteParents AS p
    LEFT JOIN (
    SELECT ItemNumber AS Original
    ,CASE 
    WHEN ItemNumber LIKE '%.%'
    THEN ItemNumber
    ELSE '1.' + ItemNumber
    END AS ItemNumber
    ,TotalPrice = Price * Qty
    FROM @BOMStructure
    ) AS s ON s.ItemNumber LIKE p.ItemNumber + '.%'
    OR p.ItemNumber = '1' --'0'
    WHERE s.Original NOT IN (
    SELECT ItemNumber
    FROM cteParents
    GROUP BY p.ItemNumber
    UPDATE s
    SET s.TotalPrice = q.TotalPrice * s.Qty
    FROM @BOMStructure AS s
    INNER JOIN cteSource AS q ON q.ItemNumber = s.ItemNumber;
    --Mengupdate Harga Main Assy menggunakan function With 
    WITH cteLevel (
    Lvl
    ,PartNumber
    ,TotalPrice
    AS (
    SELECT LEN(ItemNumber) - LEN(REPLACE(ItemNumber, '.', '')) AS Lvl
    ,PartNumber
    ,TotalPrice
    FROM @BOMStructure
    UPDATE s
    SET s.TotalPrice = (
    SELECT sum(TotalPrice)
    FROM cteLevel AS PriceLvl1
    WHERE Lvl = 1
    FROM @BOMStructure AS s
    INNER JOIN cteLevel AS q ON q.PartNumber = s.PartNumber
    WHERE s.ItemNumber = '1'
    UPDATE @BOMStructure
    SET Price = TotalPrice / Qty
    --Kondisi Part Number yang merupakan Sub Assembly
    WHERE PartNumber IN (
    SELECT e1.PartNumber
    FROM @BOMStructure e1
    ,@BOMStructure e2
    WHERE e2.ItemNumber > e1.ItemNumber
    AND e2.ItemNumber < e1.ItemNumber + 'Z'
    AND e1.ItemNumber NOT LIKE '1'
    AND e2.ItemNumber NOT LIKE '1'
    GROUP BY e1.PartNumber
    UPDATE @BOMStructure
    SET Price = TotalPrice / Qty
    WHERE ItemNumber = '1'
    SELECT PartNumber
    ,Descript
    ,Qty
    ,Price
    ,TotalPrice
    ,ItemNumber
    ,(LEN(ItemNumber) - LEN(REPLACE(ItemNumber, '.', ''))) as C
    FROM @BOMStructure
    Can you explain logic behind 1 or 1.1 must 1477.00.
    Shridhar J Joshi
    Thanks alot

  • Sort memory area problem

    Hello,
    We have serious memory problem in our SAP query programs. In add-on SAP query programs developed in 4.6C environment consume extremely huge amount of memory (more than 5 GB) after upgrading to ERP6.0.
    This happens when sorting output data with keys.
    Does anyone have encounter similar problems before?
    Any input is welcome.
    Regards,
    Kazuya

    When you select the artist in AppleTV (It happens on my iPhone as well) you get a list of all the albums that contain work by that artist and when you choose shuffle it plays any song from any album listed. So it means that songs in a compilation album will play under shuffle when you choose that artist even if it is not from the chosen artist.
    I hope I am explaining myself here.
    Let me try again. By choosing an artist you get a list of every album with at least one song by that artist, including compilations. By choosing shuffle AppleTV (or iPhone) will shuffle songs from the list of albums, including the compilations. This means you get songs from the compilation albums that are not from the selected artist.
    I am looking for a way to be able to select only the songs by the selected artists and exclude those songs that are not from that artist.

  • Sorting tree items manually

    I am trying to allow the user a way of shifting through items
    in a tree 2 levels deep. This will give the user a chance to order
    the items within the tree so they can be sent to word in the
    desired sequence. I have working code for shifting through items at
    the lowest level but I can't get it to work correctly for the
    folder level items. I have some code that works okay but has a
    little problem. I found that if you stick with moving one folder up
    the tree then you won't encounter the problem. However, if you
    switch to a different folder to move then you will encounter the
    problem sooner. The problem seems to be copying a portion of the
    tree and appending it to the end. I don't know what exactly is
    happening! I was hoping that someone could help me out on this.
    Does anybody know a way to do this? Ohh yeah and I would like
    the selectedIndex to stay with the folder selected as well.
    (I also posted this in the “Advanced Techniques”
    forum.)
    Thanks for your help.
    Jeff
    Code:

    Has Anybody even attempted this before?

Maybe you are looking for

  • Install CS5 on mac

    I own Photoshop CS5 for windows. I just bought a mac. can I install on mac with same serial? If not can I purchase the upgrade to CS6 for Mac via the online store?

  • Batch Image Conversion

    Can iPhoto 4.x do batch image conversion of JPGs to TIFFs, and vice versa? Is there freeware for Apple Macs that can do this? Photoshop is too rich for my blood. Thanks.

  • Have screen enlarged and cannot get back to normal size

    have screen enlarged and cannot grt back to normal size

  • PSE 9 organizer will not start

    I have just installed PSE 9 and on my Win 7 system the organizer will not start.  I can see the welcome splash screen but when I hit the Organizer button nothing happens.  If I hit the Editor button it starts fine.  I have tried the "Shift, Ctrl, Alt

  • Compiling Robohelp for Word project as MS HTML Help

    I am compiling a RoboHelp for Word X5 project as a Miscrosoft HMTL Help file (.chm) and on the first page of each one of my projects books is a paragraph of all the different font names (see below). How the heck do I get rid of this? i.e. ...Arial;Co