Chapter 9: Problem 11
Evaluate each vertex in each game tree. The values of the terminal vertices are given.
/*! This file is auto-generated */ .wp-block-button__link{color:#fff;background-color:#32373c;border-radius:9999px;box-shadow:none;text-decoration:none;padding:calc(.667em + 2px) calc(1.333em + 2px);font-size:1.125em}.wp-block-file__button{background:#32373c;color:#fff;text-decoration:none}
Learning Materials
Features
Discover
Chapter 9: Problem 11
Evaluate each vertex in each game tree. The values of the terminal vertices are given.
All the tools & learning materials you need for study success - in one app.
Get started for free
Show that the height \(h\) of an \(n\) -vertex balanced binary tree satisfies \(h=O(\lg n) .\) This result shows that the worst-case time to search in an \(n\) -vertex balanced binary search tree is \(O(\lg n)\)
Refer to the following situation. Suppose that we have stamps of various
denominations and that we want to choose the minimum number of stamps to make
a given amount of postage. Consider a greedy algorithm that selects stamps by
choosing as many of the largest denomination as possible, then as many of the
second-largest denomination as possible, and so on.
Suppose that the available denominations are \(1=a_{1}<\) \(a_{2}
Let \(G=(V, E)\) be a simple undirected graph. \(A\) vertex cover of \(G\) is a subset \(V^{\prime}\) of \(V\) such that for each edge \((v, w) \in E,\) either \(v \in V^{\prime}\) or \(w \in V^{\prime} .\) The size of a vertex cover \(V^{\prime}\) is the number of vertices in \(V^{\prime} . A n\) optimal vertex cover is a vertex cover of minimum size. An edge disjoint set for \(G\) is a subset \(E^{\prime}\) of \(E\) such that for every pair of distinct edges \(e_{1}=\left(v_{1}, w_{1}\right)\) and \(e_{2}=\) \(\left(v_{2}, w_{2}\right)\) in \(E^{\prime},\) we have \(\left\\{v_{1}, w_{1}\right\\} \cap\left\\{v_{2}, w_{2}\right\\}=\varnothing\). Show that if \(V^{\prime}\) is any vertex cover of a graph \(G\) and \(E^{\prime}\) is any edge disjoint set for \(G,\) then \(\left|E^{\prime}\right| \leq\left|V^{\prime}\right|\).
Write a backtracking algorithm that outputs all subsets of \(\\{1,2, \ldots, n\\}\)
Use decision trees to find a lower bound on the number of comparisons required to sort five items in the worst case. Give an algorithm that uses this number of comparisons to sort five items in the worst case.
What do you think about this solution?
We value your feedback to improve our textbook solutions.