30 30 votes Level order traversal of a rooted tree can be done by starting from the root and performing preorder traversal in-order traversal depth first search breadth first search Data Structures gatecse-2004 data-structures tree easy + – Kathleen 10.2k views answer comment Share Follow Print See all 2 Comments 2 2 Comments reply JashanArora commented Jan 1, 2020 reply Follow flag Let L mean Left Sub-tree and R mean Right Sub-tree Preorder traversal: Root, then L, then R Inorder traversal: L, then Root, then R Postorder traversal: L, then R, then Root Levelorder traversal: Start from the root and call BFS. 1 1 replyShare ritiksri8 commented Jul 7, 2024 reply Follow flag Done by BFS . You can attempt here:- https://www.geeksforgeeks.org/problems/level-order-traversal/1 0 0 replyShare Please log in or register to add a comment.
Best answer 33 33 votes Answer is option D. Breadth first seach. anshu answered Feb 6, 2015 • edited Jun 14, 2018 by Milicevic3306 anshu comment Share Follow 0 reply Please log in or register to add a comment.
8 8 votes Level order traversal of a tree is breadth first traversal for the tree. http://www.geeksforgeeks.org/level-order-tree-traversal/ Rishi yadav answered Oct 13, 2017 Rishi yadav comment Share Follow See all 2 Comments 2 2 Comments reply saxena0612 commented Nov 16, 2017 reply Follow flag @ Rishi yadav Does it mean that we don`t care about order in which nodes are there in level like left to right, Because while implementing BFS we tend to go for adjacent node [order doesn`t matter].Is it same? 3 3 replyShare Rishi yadav commented Dec 4, 2017 reply Follow flag Basically in a tree we traverse from left to right @saxena0612 0 0 replyShare Please log in or register to add a comment.
6 6 votes option D is the correct answer Level order traversal of the tree resembles the Breadth-first search of the graph and also one more important point regarding the LEVEL ORDER TRAVERSAL apart from the question asked is : level order traversal uses the queued data structure. Rudr Pawan answered Jul 18, 2019 Rudr Pawan comment Share Follow 0 reply Please log in or register to add a comment.