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
+14-1
Original file line number
Diff line number
Diff line change
@@ -77,7 +77,18 @@ __Properties__
77
77
## Search Algorithms
78
78
79
79
### Linear
80
-
Add comments here
80
+
![alt text][linear-image]
81
+
82
+
From [Wikipedia][linear-wiki]: linear search or sequential search is a method for finding a target value within a list. It sequentially checks each element of the list for the target value until a match is found or until all the elements have been searched.
83
+
Linear search runs in at worst linear time and makes at most n comparisons, where n is the length of the list.
84
+
85
+
__Properties__
86
+
* Worst case performance O(n)
87
+
* Best case performance O(1)
88
+
* Average case performance O(n)
89
+
* Worst case space complexity O(1) iterative
90
+
91
+
81
92
82
93
## Ciphers
83
94
@@ -113,3 +124,5 @@ Mathematically a bijective function is used on the characters' positions to encr
0 commit comments