1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
babunello [35]
3 years ago
12

Suppose that the following elements are added in the specified order to an empty binary search tree: Kirk, Spock, Scotty, McCoy,

Chekov, Uhuru, Sulu, Khaaaan! Write the elements of the tree above in the order they would be seen by a pre-order, in-order, and post-order traversal. Type your solutions with the elements separated by spaces and/or commas, such as:
Computers and Technology
1 answer:
patriot [66]3 years ago
6 0

Answer:

Pre-order: Kirk, Chekov, Khaaaan, Spock, Scotty, McCoy, Sulu, Uhuru

In-order: Chekov, Khaaaan, Kirk, McCoy, Scotty, Spock, Sulu, Uhuru

Post-order: Khaaaan, Chekov, McCoy, Scotty, Sulu, Uhuru, Spock, Kirk

Explanation:

The binary search tree is described in the diagram below.

The pre-order traversal of the binary tree gets the root, then the left node and right node. The in-order traversal picks the left node, the root node, and then the right node while the post-order traversal of the binary tree follows the left node, right node, and then the root node.

You might be interested in
Which term refers to computer programs that provide computer users with a graphical interface to the internet?
bulgar [2K]
Web browser is the term that refers to computer program that provide computer users with graphical interface to the internet.
4 0
3 years ago
Emerson needs to tell his browser how to display a web page. Which tool will he use?
alina1380 [7]

Answer:

HTML

Explanation:

HTML stands for <em>"Hypertext Markup Language." </em>It allows the creation of electronic documents which use <em>semantics</em> to indicate a particular text. The different HTML elements are being separated by<em> "angle brackets" </em>in order to make up a tag. These tags are not visible, but they make it possible for the browser's page to be interpreted.

8 0
3 years ago
Read 2 more answers
Gina is driving her car down the street. She has a teddy bear sitting on the back seat. A dog runs in front of Gina's car, so sh
kiruha [24]
Newton's 1st Law of Motion- an object (bear) will stay in motion until acted upon by an unbalanced force
5 0
3 years ago
Read 2 more answers
Don't Answer if you are going to give me a link! Don't Waste My Points!
svp [43]

Answer:

D. Childrens Toys and brigh colored rugs

Explanation:

It is because they mentioned that it was for children and they already have bright furniture, so it only makes sense.

3 0
3 years ago
Ohanians “great big secret” is that:
romanna [79]

Answer:

It is that we should put forward a serious cause in a fun way.

Explanation:

Ohanian is the founder of Reddit and a successful Internet-based entrepreneur. He is based in Florida and married to Serena Williams. And he has shared his big secret, and which is no matter how serious a cause might be, your effort should be to present it in a fun way. He follows this secret and has made $70M through it. And all will support him on this, like stress, and a complicated tensed approach can make you ill, and you will never live to re-reading such writing in future, and hence it will be a wastage of time certainly. Some will say we should go by the requirement, but I feel Ohanian is right as fun makes our path to find the solution easy, and in any way, there is a risk of not finding a solution. However, always remember some people die with a smile, and they are always remembered as the world loves such personality since they bring to limelight only happiness.

4 0
3 years ago
Other questions:
  • You can choose which rules you want excel to use by enabling and disabling them in the ____ area in the excel options dialog box
    11·1 answer
  • Trading your bicycle for a snowboard exemplifies ?
    15·1 answer
  • Alex is setting up a network for his company's computers. He installs a circuit board into each computer, enabling it to be conn
    15·1 answer
  • What is the term for water wave that is created by an underwater earthquake
    5·1 answer
  • Drag the tiles to the correct boxes to complete the pairs. Match the items with their respective descriptions.
    7·1 answer
  • Vocational schools are also called all of the following except:
    12·2 answers
  • What is a hash function? A. A function that computes the location of the values in the array B. A function has allocated memory
    7·2 answers
  • PowerPoint Online automatically saves your presentation to what Office Online application? OneDocument OneDrive OneNote OneWay
    13·2 answers
  • Why did NFL equip its players with RDIF tags?
    13·1 answer
  • How does Accenture help companies harness the power of data to achieve optimal business outcomes?
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!