Lec-55: Find Preorder, Postorder & Inorder of Binary Search Tree(BST) in Data Structure

  Рет қаралды 465,619

Gate Smashers

Gate Smashers

Күн бұрын

👉Subscribe to our new channel: / @varunainashots
0:00 - Introduction
0:24 -Post order traversal
1:53 -Pre order
2:05 -In order
3:25 -Next element
6:14 -Post order
The major importance of tree traversal is that there are multiple ways of carrying out traversal operations unlike linear data structures like arrays, bitmaps, matrices where traversal is done in a linear order.
Each of these methods of traversing a tree have a particular order they follow:
For Inorder, you traverse from the left subtree to the root then to the right subtree.
For Preorder, you traverse from the root to the left subtree then to the right subtree.
For Post order, you traverse from the left subtree to the right subtree then to the root.
The idea of providing these questions is to evaluate GATE aspirants randomly from any topic of full Syllabus. Our aim is to give the you quality questions from full syllabus. Its just for your Practicing.
#GATE2020 #PSU #MostExpectedQuestions
►Data Structure (Complete Playlist):
• Data Structure
Other subject-wise playlist Links:
--------------------------------------------------------------------------------------------------------------------------------------
► Operating System :
• Operating System (Comp...
►Database Management System:
• DBMS (Database Managem...
► Theory of Computation
• TOC(Theory of Computat...
►Artificial Intelligence:
• Artificial Intelligenc...
►Computer Networks (Complete Playlist):
• Computer Networks (Com...
►Computer Architecture (Complete Playlist):
• Computer Organization ...
►Structured Query Language (SQL):
• Structured Query Langu...
►Discrete Mathematics:
• Discrete Mathematics
►Compiler Design:
• Compiler Design (Compl...
►Number System:
• Number system
►Cloud Computing & BIG Data:
• Cloud Computing & BIG ...
►Software Engineering:
• Software Engineering
►Design and Analysis of algorithms (DAA) (Complete Playlist):
• Design and Analysis of...
►Graph Theory:
• Graph Theory
►Programming in C:
• C Programming
►Digital Logic:
• Digital Logic (Complet...
---------------------------------------------------------------------------------------------------------------------------------------
Our social media Links:
► Subscribe to us on KZbin: / gatesmashers
► Like our page on Facebook: / gatesmashers
► Follow us on Instagram: / gate.smashers
► Follow us on Instagram: / varunainashots
► Follow us on Telegram: t.me/gatesmashersofficial
► Follow us on Threads: www.threads.net/@gate.smashers
--------------------------------------------------------------------------------------------------------------------------------------
►For Any Query, Suggestion or notes contribution:
Email us at: gatesmashers2018@gmail.com
#preorder #Postorder#InorderTraversal#bstv

Пікірлер: 176
@sahilsharma7013
@sahilsharma7013 5 жыл бұрын
It was most confusing question to me but today u provided cheat code to solve it. Sir u r truly genius
@poojapoojadhapte1430
@poojapoojadhapte1430 Жыл бұрын
Beatiful sir tommorrow i having exams so beautiful
@sandeep-shaw
@sandeep-shaw 4 жыл бұрын
Made my concept fully crystal clear Thanks a lot
@muhammadhamzamaqsood8576
@muhammadhamzamaqsood8576 Жыл бұрын
That is very concise and complete. Thank you!
@abdullahMinhas-gs6xx
@abdullahMinhas-gs6xx Күн бұрын
You are really god gifted that sort out all problems.... Allsh bless you🎉
@viplovekadre5578
@viplovekadre5578 5 жыл бұрын
Aap bhut acche se aur sukoon se pdate hai sir ji , jab tak apki ek video na dekh le din nahi nikalta , thanks for the good work . I am a big fan of your teaching .
@shwetalitalele9150
@shwetalitalele9150 5 жыл бұрын
Yr seriously....mindblowing ho sir app.....🙃💃💃
@amanshitta
@amanshitta 4 жыл бұрын
Sir, If we design a BST directly using the preorder like the first element is 30 so the next element will be placed according to the BST property and so on... then the post order can be derived using the tree , So why did we need in-order of the tree? because using the pre-order seq. we get to know what is the root element and also the tree itself is a BST so the next elements will be placed according to the property only
@sanazamir291
@sanazamir291 3 жыл бұрын
Great work u have done.. Thanku and stay blessed
@shubhamshende626
@shubhamshende626 4 жыл бұрын
BST+Preoder given just insert elements in tree as per BST property.
@vandanasahu1154
@vandanasahu1154 2 жыл бұрын
Sir please make a complete playlist on data structure....it would be of great help
@prathamvyas6640
@prathamvyas6640 3 жыл бұрын
Bro great work. You easily teach this hard topic ,thank you.
@manishyadav7586
@manishyadav7586 3 жыл бұрын
Thanku so much sir ji ..aap sach me great ho..saare concept topic sab clear ho rahe ab 🙏🙏🙏🙏
@naseeblashari2939
@naseeblashari2939 2 жыл бұрын
bundle of thanks sir for your such easy and intersting way of teaching
@riyasathsulthanashaik
@riyasathsulthanashaik 7 ай бұрын
Your teaching levels are really amazing sir.🤩
@gALAXy-cartoon
@gALAXy-cartoon 6 ай бұрын
Outstanding job 👏❤ really appreciate ❤
@ajaygenius4644
@ajaygenius4644 2 жыл бұрын
Uncomparable explanations sirji🙏
@MdAbdullaGaur
@MdAbdullaGaur 3 жыл бұрын
That's great explaining sir 👌👌👌! ❣️
@dechuzzyumcity....8300
@dechuzzyumcity....8300 3 жыл бұрын
Big thanks from Kerala..u r great sir...
@krishanudutta2943
@krishanudutta2943 2 жыл бұрын
Awesome sir thanks a lot... Happy teacher's day sir God bless you😊❤️
@taleemmurtaza5041
@taleemmurtaza5041 3 жыл бұрын
Sir really you are great amazing trick for find the post order with the hlp of ino and preo😍
@sadaffnazz725
@sadaffnazz725 3 жыл бұрын
thasnks alot sir.outstanding lecture
@hafsanisar2453
@hafsanisar2453 3 жыл бұрын
Good explanation... Excellent lecture.. Jaza kallah
@preetiyadav8140
@preetiyadav8140 3 жыл бұрын
Hey sir! Thanks to give us excellent lecture 😊 . Here I need your suggestion is there any particular book to prepare for NIELIT scientific Assistant exam ? Reply Please 🙏
@Sangeet372
@Sangeet372 2 жыл бұрын
Your shortcut method are amazing sir 👍👍👍👍👍👍👌👌👌
@vishalsaxen
@vishalsaxen 7 ай бұрын
I really appreciate your skills and presenting skills
@anusha400
@anusha400 3 жыл бұрын
Very gud teaching sir...Thank you sm😊
@panktuleaudu2201
@panktuleaudu2201 2 ай бұрын
Thanks for this clear explanation sir!
@himanshurana5880
@himanshurana5880 2 жыл бұрын
mere sir se jyada aap jante ho... thank you trick ke liye...🙏🏻 tution wale sir bol te hai practice karo practice se hoga....aap ne trick bata ke bohot help kar di...
@suryapratapsinghumath7156
@suryapratapsinghumath7156 2 жыл бұрын
Awesome teaching skill sir
@oanunamdev3505
@oanunamdev3505 16 күн бұрын
Thank you so much 😊 sir
@dwrbidaimari5345
@dwrbidaimari5345 2 жыл бұрын
Thank you Sir, for your help.
@biyankaacharjee5932
@biyankaacharjee5932 Жыл бұрын
Thank you so much sir ❤️ You are best teacher 💞
@tasneempoonawala2701
@tasneempoonawala2701 3 ай бұрын
Maths me mujhe bohot help milti hai thank u sir😊
@amityerpude9408
@amityerpude9408 5 жыл бұрын
Jabardast sirji...
@leenagardia2425
@leenagardia2425 5 жыл бұрын
Good explanation... thanks
@Jamil_Ahmed001
@Jamil_Ahmed001 Жыл бұрын
Thank you clear this concept
@gauravgangwar317
@gauravgangwar317 3 жыл бұрын
thank you sir your videos is more helpful to us thank you......
@soumi6720
@soumi6720 Жыл бұрын
Amazing explanation
@hitakshigupta7193
@hitakshigupta7193 3 жыл бұрын
Okay so let me tell you... You have always been an angel for my engineering final exam to vigorous competitive prepration ❤️
@monikashahane5519
@monikashahane5519 2 жыл бұрын
sir excellent lecture and very useful
@bilal8286
@bilal8286 Жыл бұрын
Bhai sach m awesome work kr re ho ..hmesha khush rho..love from Pakistan❤
@manishadeepak2666
@manishadeepak2666 2 жыл бұрын
Sir u r truly genius 👍thank u sir🙏🌹🌹
@studyforcomputerscienceand4515
@studyforcomputerscienceand4515 4 жыл бұрын
Mind blowing sir 👍 maza aa gaya sir thanks
@tanvir7783
@tanvir7783 3 жыл бұрын
Thank you brother 😍😍😍 love for you from Bangladesh
@nilanjandutta_
@nilanjandutta_ 3 жыл бұрын
G O D ur tricks were soo good watched all ur videos before exam day ........
@kahanimishra9153
@kahanimishra9153 3 ай бұрын
Thank you sir🎉
@Thecreative734
@Thecreative734 6 ай бұрын
Nice explanation sir ❤
@salmaKhanum123
@salmaKhanum123 2 жыл бұрын
Really helpful thank you sir
@mpanghal9801
@mpanghal9801 3 жыл бұрын
What an amazing trick😀
@Nehasutharstatus
@Nehasutharstatus 2 жыл бұрын
Apki technique bhot. Hi easy muje ab agaya easily me thank you sir 🙏🙏😊😊
@vijaykumar-tg2tc
@vijaykumar-tg2tc 2 жыл бұрын
Solid explaination Sir
@vipulrawat9844
@vipulrawat9844 Жыл бұрын
amazing explanation
@Reflexes01
@Reflexes01 4 ай бұрын
You are the best 😁❤️
@syedsafi
@syedsafi 2 жыл бұрын
Thanks a lot sir😊
@syedsadiqali892
@syedsadiqali892 5 жыл бұрын
Maza agya bhai.. luv u
@rounak3239
@rounak3239 5 жыл бұрын
Gurujee shandhar jabardast zindabad
@dipaleescreativerangoli6800
@dipaleescreativerangoli6800 3 жыл бұрын
you are great sir👍
@pratik8332
@pratik8332 4 жыл бұрын
Thank you^infinite
@riteshgadre6819
@riteshgadre6819 Жыл бұрын
Thank you sir 😊
@debiprasadbedanta9718
@debiprasadbedanta9718 2 жыл бұрын
Thank you ❤️
@pratik8332
@pratik8332 4 жыл бұрын
Thank you very much sir
@pratimasaket9214
@pratimasaket9214 2 жыл бұрын
Thank you sir🙏
@sajansekhu8785
@sajansekhu8785 4 жыл бұрын
Superbbbbbbbb.......Waheguru always bless u.....🙏🙏🙏🙏🙏.......⭐⭐⭐⭐⭐
@user-mu4nq9pq6m
@user-mu4nq9pq6m 8 ай бұрын
😊😊😊😊Thanku so much sirrrrr❤❤❤❤❤
@akshaychougule7170
@akshaychougule7170 5 жыл бұрын
Thank you sirji. ... You are best teacher in the world..
@GateSmashers
@GateSmashers 5 жыл бұрын
Thank You..Love and blessings
@samsunglab7593
@samsunglab7593 Жыл бұрын
great sir
@niteshpandey43
@niteshpandey43 Жыл бұрын
Thanks sir🙏
@knowledgebhajja2019
@knowledgebhajja2019 2 жыл бұрын
Thanks ❤️
@armysongsbyadjarmy3511
@armysongsbyadjarmy3511 2 жыл бұрын
Sir very very thanks 💓💓
@nehashende4790
@nehashende4790 3 жыл бұрын
Liked, shared, subscribd
@shubhampatel7241
@shubhampatel7241 2 жыл бұрын
Thanks u sir you are great sir
@Meethu69
@Meethu69 3 жыл бұрын
Thanks a ton
@nehamehrotra8555
@nehamehrotra8555 2 жыл бұрын
Great
@harshavardhankanoj6021
@harshavardhankanoj6021 2 жыл бұрын
Thank you 😊
@smallworldbigdreams2238
@smallworldbigdreams2238 2 жыл бұрын
Thank you sir.
@Ali_saif_98
@Ali_saif_98 4 жыл бұрын
Maine bht video dekhi...pr smjh ni aaya kuch bhi...finally yha pr im satisfy...thnku guru ji
@deepikasolankicse5366
@deepikasolankicse5366 2 жыл бұрын
thanks sir
@ravi12492
@ravi12492 2 жыл бұрын
Amazing
@ranabindumondal9301
@ranabindumondal9301 Жыл бұрын
THANKS
@itz_romeo_ff5665
@itz_romeo_ff5665 Жыл бұрын
Thank you sir ji
@nitishchoudhary201
@nitishchoudhary201 3 жыл бұрын
Thanks sir 😊
@honey.g791
@honey.g791 3 жыл бұрын
VVGood explanation sir
@HassanKhan-tr5ph
@HassanKhan-tr5ph Жыл бұрын
super sir g.
@PratimaYadav-bg3ug
@PratimaYadav-bg3ug 3 жыл бұрын
Thanku sir 🙏
@SaurabhYadav-zn3qt
@SaurabhYadav-zn3qt 2 жыл бұрын
Jodddddd..🔥🔥
@meghabisht3225
@meghabisht3225 3 жыл бұрын
Best 💥
@hariomchittara4035
@hariomchittara4035 Жыл бұрын
Nice sir
@stutikandpal480
@stutikandpal480 3 жыл бұрын
Sir, I think there is a simpler method. The preorder traversal is given and also it is given that it is a BST, so we can simple create a BST using the keys, and write its postorder. That we will not have to take care of inorder and preorder simultaneously. we need to do this kind of solution only when it's not mentioned that it is a BST. Please let me know if I am wrong. Thank you.
@suryaprakashtavva230
@suryaprakashtavva230 Жыл бұрын
Right bro
@priyanshsinha8593
@priyanshsinha8593 3 жыл бұрын
Sir if the inorder and post order traversal are defined than how will we determine the pre-order of the BST? Please comment and reply and solve my doubt.
@ghulammurtazagmdahar
@ghulammurtazagmdahar Жыл бұрын
First, using in order and post order draw BST. Second, find pre-order by traversing.
@Smartstudy20409
@Smartstudy20409 2 жыл бұрын
Nyc class
@juhishivhare2571
@juhishivhare2571 5 жыл бұрын
Awesome way of teaching ..😊
@swatimane2382
@swatimane2382 8 ай бұрын
Best
@sameerpatlekar2298
@sameerpatlekar2298 2 жыл бұрын
🔥🔥🔥🔥
@kashifmeer2304
@kashifmeer2304 7 күн бұрын
Fun fact :- You can go to next content area by position your 1finger in middle and 2nd finger in skipping place and touch 2 times
@deepeshshah4961
@deepeshshah4961 2 жыл бұрын
Sir, you said that we can create the BST if we know any 2 of the (Inorder/Pre-order/Post-order) but there is PYQ asked in 1987 which says - "For unique tree, Inorder must be present along with any 1 of (Pre-order / Post-order)"
@AyushKumar-ng3vi
@AyushKumar-ng3vi 3 жыл бұрын
dua lagegi sir meri aapko
@soumambanerjee1816
@soumambanerjee1816 5 жыл бұрын
Link state routing.. Pe sawal banayiye...
@AmitKumar-te6hy
@AmitKumar-te6hy Жыл бұрын
Sir now I am able to find order and also construct tree after watching your video. Can we find out order (in order) if (preorder and post order given to us)?
@theabhish1
@theabhish1 2 жыл бұрын
Nice trick hmm
@sejalvinodwasule8868
@sejalvinodwasule8868 2 жыл бұрын
🤕😵🤯its still lil confusing
小宇宙竟然尿裤子!#小丑#家庭#搞笑
00:26
家庭搞笑日记
Рет қаралды 14 МЛН
Useful gadget for styling hair 🤩💖 #gadgets #hairstyle
00:20
FLIP FLOP Hacks
Рет қаралды 10 МЛН
Finger Heart - Fancy Refill (Inside Out Animation)
00:30
FASH
Рет қаралды 29 МЛН
Best Order to Learn Algorithms & Data Structures
1:00
NeetCodeIO
Рет қаралды 179 М.