Join Raghavendra Dixit for an in-depth discussion in this video Shell sort, part of Introduction to Data Structures & Algorithms in Java.
- [Instructor] Let's study another…very interesting sorting algorithm called Shell sort,…after the name of its inventor, Donald Shell.…This algorithm is an improved insertion sort algorithm,…but it can also be applied to bubble sort,…but we'll keep our discussion to the insertion sort,…which is the main line.…This algorithm works very well for medium-sized arrays,…having elements up to a few thousands.…Donald Shell saw a problem with the insertion sort algorithm…and tried to fix it in his Shell sort algorithm.…
And what is that problem?…Well, if you recall, in case of insertion sort algorithm,…we had to move a lot of elements…to make place for the new element…to be inserted in the sorted part of the array,…and for large arrays, there would be a lot of element jumps,…especially when we're near the end of the array,…and the elements there are small.…To understand, consider this example.…We have this array,…and we start doing insertion sort on this,…and after some iterations, we are in this state.…
So the left part of the array is sorted,…
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.