answersLogoWhite

0

Inorder(p)

{ If p = nil return;

Inorder(p.left)

process(p.data)

Inorder(p.right) }

User Avatar

Wiki User

14y ago

What else can I help you with?

Related Questions

Which of the following traversal is used for printing the keys of binary search tree in ascending order?

In order traversal is used.


What is traverse technique used in chain survey?

1. pre-order b-tree traversal. 2. in-order b-tree traversal. 3. post-order b-tree traversal


What graph traversal algorithm uses a queue to keep track of vertices which need to be processed?

Breadth-first search


What is the relationship between Dijkstra's algorithm and breadth-first search in graph traversal?

Dijkstra's algorithm is a more advanced version of breadth-first search in graph traversal. While both algorithms explore nodes in a graph, Dijkstra's algorithm considers the weight of edges to find the shortest path, whereas breadth-first search simply explores nodes in a level-by-level manner.


What is algorithm to write algorithm to the program to access a pointer variable in structure?

Here is the algorithm of the algorithm to write an algorithm to access a pointer in a variable. Algorithmically.name_of_the_structure dot name_of_the _field,eg:mystruct.pointerfield


What is algorithams?

Algarithm: Algorithm is process to solve the problem in a step by step order Algorithm is used to write the program in a computer language. thrinath.sachin@gmail.com


Write an algorithm to find the root of quadratic equation?

Write an algorithm to find the root of quadratic equation


How can you design an algorithm to check if a given graph is connected?

Use a simple DFS/BFS traversal. If you have gone through all nodes, the graph is connected.


A Write the algorithm to concatenate two given strings?

a write the algorithm to concatenate two given string


Explain non-recursive and recursive algorithm for postorder traversal on binary tree?

Step 1:- select first root node (t), start travelsing left contin


How do you write an Algorithm for a C plus plus Program?

You don't write an algorithm for a C++ program, unless you are documenting the C++ program after-the-fact. The normal procedure is to write the algorithm first, in a language independent fashion, and then translate that stated algorithm into C++ code, or into whatever language you wish.


Write an algorithm to check whether a number is a prime number or not?

You can write out this algorithm. This will then be programmed into the device to make determining prime numbers easier.