You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+28-2
Original file line number
Diff line number
Diff line change
@@ -61,6 +61,18 @@ __Properties__
61
61
62
62
###### View the algorithm in [action][quick-toptal]
63
63
64
+
## Selection
65
+
![alt text][selection-image]
66
+
67
+
From [Wikipedia][selection-wiki]: The algorithm divides the input list into two parts: the sublist of items already sorted, which is built up from left to right at the front (left) of the list, and the sublist of items remaining to be sorted that occupy the rest of the list. Initially, the sorted sublist is empty and the unsorted sublist is the entire input list. The algorithm proceeds by finding the smallest (or largest, depending on sorting order) element in the unsorted sublist, exchanging (swapping) it with the leftmost unsorted element (putting it in sorted order), and moving the sublist boundaries one element to the right.
68
+
69
+
__Properties__
70
+
* Worst case performance O(n^2)
71
+
* Best case performance O(n^2)
72
+
* Average case performance O(n^2)
73
+
74
+
###### View the algorithm in [action][selection-toptal]
75
+
64
76
65
77
## Search Algorithms
66
78
@@ -70,8 +82,17 @@ Add comments here
70
82
## Ciphers
71
83
72
84
### Caesar
73
-
Add comments here
74
-
85
+
![alt text][caesar]<br>
86
+
In cryptography, a **Caesar cipher**, also known as Caesar's cipher, the shift cipher, Caesar's code or Caesar shift, is one of the simplest and most widely known encryption techniques.<br>
87
+
It is **a type of substitution cipher** in which each letter in the plaintext is replaced by a letter some fixed number of positions down the alphabet. For example, with a left shift of 3, D would be replaced by A, E would become B, and so on. <br>
88
+
The method is named after **Julius Caesar**, who used it in his private correspondence.<br>
89
+
The encryption step performed by a Caesar cipher is often incorporated as part of more complex schemes, such as the Vigenère cipher, and still has modern application in the ROT13 system. As with all single-alphabet substitution ciphers, the Caesar cipher is easily broken and in modern practice offers essentially no communication security.
In cryptography, a **transposition cipher** is a method of encryption by which the positions held by units of plaintext (which are commonly characters or groups of characters) are shifted according to a regular system, so that the ciphertext constitutes a permutation of the plaintext. That is, the order of the units is changed (the plaintext is reordered).<br>
94
+
Mathematically a bijective function is used on the characters' positions to encrypt and an inverse function to decrypt.
0 commit comments