Table 1.
Searching algorithms | Average case | Best case | Worst case |
---|---|---|---|
Linear searching | n+ 2 | 1 | 2n |
Binary searching | 2 log n | 1 | 2 log n |
Searching algorithms | Average case | Best case | Worst case |
---|---|---|---|
Linear searching | n+ 2 | 1 | 2n |
Binary searching | 2 log n | 1 | 2 log n |