Algorithms chapter 4 exam with correct |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\
answers
A deterministic algorithm - correct answer✔✔is an algorithm that, given the same input and
|||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\
starting conditions, will always produce the same output and follow the same sequence of
|||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\
steps; meaning it's predictable and reproducible
|||\\\ |||\\\ |||\\\ |||\\\ |||\\\
Key characteristics of Deterministic Algorithms - correct answer✔✔1- Deterministic decision
|||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\
making |||\\\
2- Consistent output
|||\\\ |||\\\ |||\\\
3- Sequential execution
|||\\\ |||\\\
randomized algorithm - correct answer✔✔an algorithm whose behavior depends, in part, on |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\
the outcomes of random choices or the values of random bits
|||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\
Examples of randomized algorithm - correct answer✔✔Shuffling a deck of cards |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\
Is it possible to develop algorithms whose run times will be as good as the average run times
|||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\
but where no assumptions are made on the input space? - correct answer✔✔YES, such
|||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\
algorithms employ coin flips |||\\\ |||\\\ |||\\\
In addition to the inputs, the algorithms... - correct answer✔✔takes a source of random
|||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\
numbers and makes random choices during execution |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\
what is the behavior of the algorithm? - correct answer✔✔it can vary in different runs even on
|||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\
a fixed input(based on the random choices )
|||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\
answers
A deterministic algorithm - correct answer✔✔is an algorithm that, given the same input and
|||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\
starting conditions, will always produce the same output and follow the same sequence of
|||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\
steps; meaning it's predictable and reproducible
|||\\\ |||\\\ |||\\\ |||\\\ |||\\\
Key characteristics of Deterministic Algorithms - correct answer✔✔1- Deterministic decision
|||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\
making |||\\\
2- Consistent output
|||\\\ |||\\\ |||\\\
3- Sequential execution
|||\\\ |||\\\
randomized algorithm - correct answer✔✔an algorithm whose behavior depends, in part, on |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\
the outcomes of random choices or the values of random bits
|||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\
Examples of randomized algorithm - correct answer✔✔Shuffling a deck of cards |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\
Is it possible to develop algorithms whose run times will be as good as the average run times
|||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\
but where no assumptions are made on the input space? - correct answer✔✔YES, such
|||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\
algorithms employ coin flips |||\\\ |||\\\ |||\\\
In addition to the inputs, the algorithms... - correct answer✔✔takes a source of random
|||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\
numbers and makes random choices during execution |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\
what is the behavior of the algorithm? - correct answer✔✔it can vary in different runs even on
|||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\
a fixed input(based on the random choices )
|||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\ |||\\\