Repository for the Fall 2021 course web page
View the Project on GitHub IUDataStructuresCourse/course-web-page-Fall-2021
Submit your homework solution on Canvas (as text file, pdf, etc.).
find_first_true
Prove that your implementation of the find_first_true
function is
correct, which is to say, find_first_true(A, begin, end)
must return
the position of the first true
element in the specified half-open
interval. In other words, find the smallest index i
such that A[i]
is true
, begin <= i
, and i < end
. If there are no true
elements in the interval, then find_first_true
must return the end
position of the interval. As part of the proof, come with with a loop
invariant, state it precisely, and provide detailed reasons for why
find_first_true
.1.11 a b (proofs about Fibonacci numbers and summations)
1.12 (proofs about sumations)
2.1 (function growth rates)
2.2 (reasoning about big-O)
2.5 (reasoning about big-O)
2.7 part I (big-O for example loops)
2.24 (analysis of fast exponentiation)
2.31 (about binary search)