Thread: two inverted-tree diagrams. what command would change the left diagram to the right?

  1. #1
    Registered User
    Join Date
    Jan 2013
    Posts
    23

    Lightbulb two inverted-tree diagrams. what command would change the left diagram to the right?

    Here are two inverted-tree diagrams. I tried to issue a command to change the left
    diagram to the right diagram. Assume that you are in your home directory
    and use relative pathnames. [home] is home directory:


    [home] [home]
    | |
    +----------+----------+ +-------------+
    | | | | |
    systems ideas courses ideas courses
    | |
    notes systems
    |
    notes






    I entered: cd [home]/courses/ideas/systesms/notes [home]/ideas/courses/systesm/notes

    but didn't even work right

  2. #2
    Registered User
    Join Date
    Jan 2013
    Posts
    23
    Quote Originally Posted by blackendstars View Post
    Here are two inverted-tree diagrams. I tried to issue a command to change the left
    diagram to the right diagram. Assume that you are in your home directory
    and use relative pathnames. [home] is home directory:


    [home] [home]
    | |
    +----------+----------+ +-------------+
    | | | | |
    systems ideas courses ideas courses
    | |
    notes systems
    |
    notes






    I entered: cd [home]/courses/ideas/systesms/notes [home]/ideas/courses/systesm/notes

    but didn't even work right
    okay it seems i cant show the diagram properly.

  3. #3
    Registered User
    Join Date
    Jan 2013
    Posts
    23
    Quote Originally Posted by blackendstars View Post
    okay it seems i cant show the diagram properly.
    [home] [home]
    | |
    +------- +-------+ +-------------+
    | | | | |
    systems ideas courses ideas courses
    |
    | systems
    notes |
    notes

  4. #4
    Registered User
    Join Date
    Jan 2013
    Posts
    23
    https://cs.senecac.on.ca/~david.ward...mmary_031.html

    Question number 7

    the diagram is there

  5. #5
    Registered User
    Join Date
    Jan 2013
    Posts
    23
    work that out
    suppose to be
    mv unx122 coruses

  6. #6
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,662
    Use code tags to preserve all the formatting
    Code:
             [home]                       [home]
               |                            |
         +-------+-------+           +-------------+
         |       |       |           |             |
        unx122   |    courses       ideas       courses
         |       |                                 |
         |      ideas                            unx122
        notes                                      |
                                                 notes
    It also seems you solved it as well.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Some questions about left perfect tree
    By winggx in forum C Programming
    Replies: 1
    Last Post: 03-07-2010, 04:30 PM
  2. Binary tree wont go left!!!
    By datastructs in forum C++ Programming
    Replies: 2
    Last Post: 11-20-2009, 08:45 AM
  3. Insertion into left most child and right sibling tree
    By Unregistered in forum C Programming
    Replies: 0
    Last Post: 04-17-2002, 12:13 PM