Fluffykitten5075 Fluffykitten5075
  • 02-09-2019
  • Computers and Technology
contestada

Which method of traversing a tree would result in a sorted list for a binary search tree?

Respuesta :

StaceeLichtenstein StaceeLichtenstein
  • 05-09-2019

Answer:

The inorder traversal make a binary search tree sorted.

Explanation:

The algorithm of inorder traversal is

1.  Traverse the left subtree.

2.  print the data .

3. Traverse the right subtree

In this algorithm left subtree  is visited first then it print the data or visit the data and finally it visited Right subtree .

Answer Link

Otras preguntas

Which three structures are found in both prokaryotic and eukaryotic cells?
different between folklore and folktale?​
Find the value when x=2 and y=3 2x^0y^-2
Light of wavelength 608.0 nm is incident on a narrow slit. The diffraction pattern is viewed on a screen 88.5 cm from the slit. The distance on the screen betwe
What is development ​
The site of most absorption of nutrients is the a. stomach. b. small intestine. c. large intestine d. all of the above
Solve 2x +5=12 answer?!
which angles are corresponding angles? check all that apply
Policy and standards often change as a result of business drivers. One such driver, known as ___________________, occurs when business shifts and new systems or
Select the statements that are true for the graph The vertex is (-2, 4)-The vertex is (2,4)The graph has a minimumThe graph has a maximumThe graph has a y-inter