Skip to content

Commit 46eca98

Browse files
committed
Added Jump Search to readme.md
1 parent f76f615 commit 46eca98

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

README.md

+15
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,18 @@ __Properties__
116116
* Average case performance O(log n)
117117
* Worst case space complexity O(1)
118118

119+
### Jump
120+
![alt-text][jump-image]
121+
122+
From [Wikipedia][jump-wiki]: Jump search or block search refers to a search algorithm for ordered lists. It works by first checking all items Lkm, where {\displaystyle k\in \mathbb {N} } k\in \mathbb {N} and m is the block size, until an item is found that is larger than the search key. To find the exact position of the search key in the list a linear search is performed on the sublist L[(k-1)m, km].
123+
124+
__Properties__
125+
* Worst case performance  O(n)
126+
* Best case performance O(√n)
127+
* Average case performance  O(√n)
128+
* Worst case space complexity O(1)
129+
130+
119131
----------------------------------------------------------------------------------------------------------------------
120132

121133
## Ciphers
@@ -177,5 +189,8 @@ The Luhn algorithm or Luhn formula, also known as the "modulus 10" or "mod 10" a
177189
[binary-wiki]: https://en.wikipedia.org/wiki/Binary_search_algorithm
178190
[binary-image]: https://upload.wikimedia.org/wikipedia/commons/f/f7/Binary_search_into_array.png
179191

192+
[jump-wiki]: https://en.wikipedia.org/wiki/Jump_search
193+
[jump-image]: https://i1.wp.com/theoryofprogramming.com/wp-content/uploads/2016/11/jump-search-1.jpg
194+
180195

181196
[caesar]: https://upload.wikimedia.org/wikipedia/commons/4/4a/Caesar_cipher_left_shift_of_3.svg

0 commit comments

Comments
 (0)