Skip to content

Commit edfc335

Browse files
committed
Deployed 644ad0f with MkDocs version: 1.5.3
1 parent a754e65 commit edfc335

File tree

4 files changed

+296
-296
lines changed

4 files changed

+296
-296
lines changed

Chap02/2.2/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -9938,7 +9938,7 @@ <h2 id="22-2">2.2-2<a class="headerlink" href="#22-2" title="Permanent link">&pa
99389938
</ul>
99399939
<h2 id="22-3">2.2-3<a class="headerlink" href="#22-3" title="Permanent link">&para;</a></h2>
99409940
<blockquote>
9941-
<p>Consider linear search again (see Exercise 2.1-3). How many elements of the in- put sequence need to be checked on the average, assuming that the element being searched for is equally likely to be any element in the array? How about in the worst case? What are the average-case and worst-case running times of linear search in $\Theta$-notation? Justify your answers.</p>
9941+
<p>Consider linear search again (see Exercise 2.1-3). How many elements of the input sequence need to be checked on the average, assuming that the element being searched for is equally likely to be any element in the array? How about in the worst case? What are the average-case and worst-case running times of linear search in $\Theta$-notation? Justify your answers.</p>
99429942
</blockquote>
99439943
<p>If the element is present in the sequence, half of the elements are likely to be checked before it is found in the average case. In the worst case, all of them will be checked. That is, $n / 2$ checks for the average case and $n$ for the worst case. Both of them are $\Theta(n)$.</p>
99449944
<h2 id="22-4">2.2-4<a class="headerlink" href="#22-4" title="Permanent link">&para;</a></h2>

search/search_index.json

+1-1
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)