Join Raghavendra Dixit for an in-depth discussion in this video Tower of Hanoi, part of Introduction to Data Structures & Algorithms in Java.
- [Instructor] To show the application of recursion,…there is nothing better than the puzzle Tower of Hanoi.…Tower of Hanoi is a very interesting puzzle.…And many of you may already know about it.…So there is a story that there is a place called Hanoi…I think in Vietnam, where there are three towers…and with about 100 disks.…And amongst there, have to move all the disks…from one tower to another tower…by using certain rules.…And it is said that by the time all the disks are moved…from one tower to the other, the world will end.…
But the world has already ended many times now,…and it's probably become quite boring to even talk about it.…But anyways, so let's go over the rules of the puzzle.…Now here we have three towers A, B, and C.…And we have some disks in tower A,…which are arranged in the increasing order of size…from top to bottom.…And what we are supposed to do is to move…all the disks from tower A to tower C, using tower B…as an intermediate such that at no point of time…a bigger disk comes on top of a smaller one.…
Note: This course was created by Packt Publishing. We are pleased to host this training in our library.
- Why study data structures and algorithms?
- How to calculate the time complexity
- Using Big O notation
- Using basic sorting and search algorithms
- Searching elements in unordered arrays and ordered arrays
- Implementing a linked list in Java
- Implementing stacks using arrays
- Queues using arrays
- Binary search trees
- Representing heaps using arrays
Skill Level Intermediate
1. Introduction to Algorithms
2. Analysis of Algorithms
3. Basic Sorting and Search Algorithms
4. Linked Lists
5. Stacks and Queues
7. Binary Search Trees
8. More Sorting Algorithms
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.