brain

tamnd's digital brain — notes, problems, research

41421 notes

TAOCP 7.2.2.2 Exercise 178

Let $T(q)$ denote the number of nodes in the search tree generated by Algorithm B on $fsnark(q)$.

taocpmathematicsalgorithmsvolume-4math-medium
TAOCP 7.2.2.2 Exercise 177

An independent set in a line graph corresponds exactly to a matching in the original graph.

taocpmathematicsalgorithmsvolume-4hm-hard
TAOCP 7.2.2.2 Exercise 176

You've hit your limit.

taocpmathematicsalgorithmsvolume-4math-medium
TAOCP 7.2.2.2 Exercise 175

Exercise 7.

taocpmathematicsalgorithmsvolume-4hard
TAOCP 7.2.2.2 Exercise 174

Double lookahead can be disabled by changing the implementation so that the lookahead procedure does not perform a second lookahead after the first forced assignment.

taocpmathematicsalgorithmsvolume-4simple
TAOCP 7.2.2.2 Exercise 173

An implementation of Algorithm L was used as the experimental framework.

taocpmathematicsalgorithmsvolume-4project
TAOCP 7.2.2.2 Exercise 172

The corrected solution is below.

taocpmathematicsalgorithmsvolume-4medium
TAOCP 7.2.2.2 Exercise 171

Corrected solution: Edit `DFAIL` in Algorithm Y is a bookkeeping mechanism that records when a double-lookahead attempt has already been performed for a literal and has failed to produce useful inform...

taocpmathematicsalgorithmsvolume-4medium
TAOCP 7.2.2.2 Exercise 170

Let the input formula be a 2SAT formula $F$ with $n$ variables and $m$ clauses.

taocpmathematicsalgorithmsvolume-4medium
TAOCP 7.2.2.2 Exercise 17

Let $M_n$ be McGregor's graph of order $n$.

taocpmathematicsalgorithmsvolume-4hard
TAOCP 7.2.2.2 Exercise 169

The essential observation is that one does **not** need to compute the value of \tau(a,b) itself in order to compare two candidates.

taocpmathematicsalgorithmsvolume-4hm-hard
TAOCP 7.2.2.2 Exercise 168

Algorithm L invokes Algorithm X in step L2 to compute heuristic scores $H(l)$ for every literal $l$.

taocpmathematicsalgorithmsvolume-4hard
TAOCP 7.2.2.2 Exercise 167

Step X11 uses the binary implication information to add all consequences that are already forced by the current choice of $l_0$.

taocpmathematicsalgorithmsvolume-4medium
TAOCP 7.2.2.2 Exercise 166

In Algorithm X, step X8 performs the lookahead computation (72) after choosing a literal $l$.

taocpmathematicsalgorithmsvolume-4hard
TAOCP 7.2.2.2 Exercise 165

Let $F$ be a $k$SAT formula with variables $x_1,\ldots,x_n$.

taocpmathematicsalgorithmsvolume-4hard
TAOCP 7.2.2.2 Exercise 164

Let $T_k(n)$ be the maximum number of executions of steps R1, R2, and R3 made by the procedure $R(F)$ of exercise 163 when $F$ is a $k$SAT formula with $n$ variables.

taocpmathematicsalgorithmsvolume-4math-hard
TAOCP 7.2.2.2 Exercise 163

Let $N(F)$ denote the number of executions of steps R1, R2, and R3 made by the procedure on the formula $F$.

taocpmathematicsalgorithmsvolume-4math-medium
TAOCP 7.2.2.2 Exercise 162

Let the clauses of $F$ be stored so that, for every literal $l$, we have a list $\mathcal C(l)$ of all clauses containing $l$.

taocpmathematicsalgorithmsvolume-4medium
TAOCP 7.2.2.2 Exercise 161

Corrected solution: Edit Let (F') be obtained from (F) by adjoining the clauses [ (l_1\vee\cdots\vee l_q\vee a_j),\qquad 1\le j\le p .

taocpmathematicsalgorithmsvolume-4medium
TAOCP 7.2.2.2 Exercise 160

Let $F_{\mathrm{g}}$ denote the set of all-gray clauses of $F$.

taocpmathematicsalgorithmsvolume-4medium
TAOCP 7.2.2.2 Exercise 16

No.

taocpmathematicsalgorithmsvolume-4medium
TAOCP 7.2.2.2 Exercise 159

For part (a), the statement is false.

taocpmathematicsalgorithmsvolume-4math-medium
TAOCP 7.2.2.2 Exercise 158

Yes.

taocpmathematicsalgorithmsvolume-4simple
TAOCP 7.2.2.2 Exercise 157

Take the formula F=\{ab,\ \bar a\bar b\}.

taocpmathematicsalgorithmsvolume-4simple
TAOCP 7.2.2.2 Exercise 156

A pure literal $l$ is a special case of an autarky because the partial assignment that sets $l=1$ and leaves all other variables unset satisfies every clause containing the variable $|l|$.

taocpmathematicsalgorithmsvolume-4simple
TAOCP 7.2.2.2 Exercise 155

Step X4 constructs the lookahead forest used by Algorithm X after step X3 has selected the candidate literals.

taocpmathematicsalgorithmsvolume-4hard
TAOCP 7.2.2.2 Exercise 154

The three clauses give the implication digraph obtained from the usual binary-clause rule.

taocpmathematicsalgorithmsvolume-4medium
TAOCP 7.2.2.2 Exercise 153

In step X3, after the initial selection of the $C$ participant variables, each candidate variable $x$ receives the rating r(x)=h(x)h(\bar{x}).

taocpmathematicsalgorithmsvolume-4medium
TAOCP 7.2.2.2 Exercise 152

The two phenomena concern different notions in Algorithm $L$.

taocpmathematicsalgorithmsvolume-4medium
TAOCP 7.2.2.2 Exercise 151

I cannot produce a correct constructive solution from the information given, because the statement refers to the specific dependency digraph in equation (68) and the subforest in (69), but the vertice...

taocpmathematicsalgorithmsvolume-4hard
TAOCP 7.2.2.2 Exercise 150

At depth $d=1$, the current assignment is the one obtained after the first branch $x_5=0$.

taocpmathematicsalgorithmsvolume-4medium
TAOCP 7.2.2.2 Exercise 15

The vertices of the McGregor graph of order $n$ are indexed by ordered pairs (j,k),\qquad 0\le j\le n,\quad 0\le k<n .

taocpmathematicsalgorithmsvolume-4medium
TAOCP 7.2.2.2 Exercise 149

In Algorithm L, a variable is a **participant** at the current node if either literal $x$ or $\bar{x}$ has played the role of $u$ or $v$ in step L8 at some node above the current node in the search tr...

taocpmathematicsalgorithmsvolume-4hard
TAOCP 7.2.2.2 Exercise 148

Equation (66) is used inside the search procedure after a partial assignment has already been made.

taocpmathematicsalgorithmsvolume-4medium
TAOCP 7.2.2.2 Exercise 147

By equation (66), the cutoff value is C_{\max}=C_0+C_1d .

taocpmathematicsalgorithmsvolume-4simple
TAOCP 7.2.2.2 Exercise 146

The purpose of (64) and (65) is to estimate the desirability of choosing a branch literal $l$ in step L3 from information gathered about the clauses containing $l$ and $\bar l$.

taocpmathematicsalgorithmsvolume-4medium
TAOCP 7.2.2.2 Exercise 145

The refinement rule (65) is applied with $\alpha=3.5$.

taocpmathematicsalgorithmsvolume-4medium
TAOCP 7.2.2.2 Exercise 144

The statement is true.

taocpmathematicsalgorithmsvolume-4simple
TAOCP 7.2.2.2 Exercise 143

Algorithm L uses TIMP to process the effects of assignments on clauses.

taocpmathematicsalgorithmsvolume-4hard
TAOCP 7.2.2.2 Exercise 142

Edit The sequence can be produced directly in step L2 by adding an output operation whenever Algorithm L extends its current partial assignment.

taocpmathematicsalgorithmsvolume-4medium
TAOCP 7.2.2.2 Exercise 141

Edit The fields (IST(l)) do not represent an absolute time.

taocpmathematicsalgorithmsvolume-4medium
TAOCP 7.2.2.2 Exercise 140

By the definition preceding Algorithm L, an entry of `ISTACK` is created only in the stamping operation (63).

taocpmathematicsalgorithmsvolume-4medium
TAOCP 7.2.2.2 Exercise 14

The clauses (17) are useful because they encode the constraints of a graph-coloring problem in a form that allows a SAT solver to detect forced choices early.

taocpmathematicsalgorithmsvolume-4medium
TAOCP 7.2.2.2 Exercise 139

Step L9 of Algorithm L is the point at which a newly discovered binary implication is inserted into the binary implication lists.

taocpmathematicsalgorithmsvolume-4medium
TAOCP 7.2.2.2 Exercise 138

In step L9 of Algorithm L, the clause under consideration is the binary clause $u \vee v$.

taocpmathematicsalgorithmsvolume-4medium
TAOCP 7.2.2.2 Exercise 137

In Algorithm L, the free list contains the variables that have not yet been assigned a value.

taocpmathematicsalgorithmsvolume-4medium
TAOCP 7.2.2.2 Exercise 136

A ternary clause $l_1l_2l_3$ contributes three entries to the TIMP structure.

taocpmathematicsalgorithmsvolume-4simple
TAOCP 7.2.2.2 Exercise 135

The implication digraph has a vertex for every literal.

taocpmathematicsalgorithmsvolume-4medium
TAOCP 7.2.2.2 Exercise 134

Algorithm 2.

taocpmathematicsalgorithmsvolume-4medium
TAOCP 7.2.2.2 Exercise 133

Let $W=\textit{waerden}(3,3;9)$.

taocpmathematicsalgorithmsvolume-4medium
TAOCP 7.2.2.2 Exercise 132

No.

taocpmathematicsalgorithmsvolume-4hard
TAOCP 7.2.2.2 Exercise 131

In Algorithm D, after step D3 has failed to find a unit clause, every free variable $x_k$ has had its watch lists examined.

taocpmathematicsalgorithmsvolume-4hard
TAOCP 7.2.2.2 Exercise 130

Corrected solution: Edit In Algorithm D, the watch list for a literal is a linked list of clauses that are currently watching that literal.

taocpmathematicsalgorithmsvolume-4medium
TAOCP 7.2.2.2 Exercise 13

Edit Let (x_{k,i}) denote the exact-cover row that places the two copies of (k) in positions (i) and (i+k+1).

taocpmathematicsalgorithmsvolume-4medium
TAOCP 7.2.2.2 Exercise 12

The proposed solution cannot be corrected into a valid mathematical solution from the information given in the exercise statement alone.

taocpmathematicsalgorithmsvolume-4medium
TAOCP 7.2.2.2 Exercise 129

Algorithm D maintains, for each literal $l$, a watch list containing the clauses in which $l$ is one of the currently watched literals.

taocpmathematicsalgorithmsvolume-4medium
TAOCP 7.2.2.2 Exercise 128

I cannot give a complete worked solution for Exercise 7.

taocpmathematicsalgorithmsvolume-4medium
TAOCP 7.2.2.2 Exercise 127

In the computation displayed in (59), Algorithm D is applied to the clauses of the unsatisfiable instance (9).

taocpmathematicsalgorithmsvolume-4medium
TAOCP 7.2.2.2 Exercise 126

Solution to TAOCP 7.2.2.2 Exercise 126.

taocpmathematicsalgorithmsvolume-4medium
TAOCP 7.2.2.2 Exercise 125

Algorithm B already enumerates the complete binary search tree implicitly.

taocpmathematicsalgorithmsvolume-4medium
TAOCP 7.2.2.2 Exercise 124

In Algorithm B, the watch lists are not linked through clause numbers.

taocpmathematicsalgorithmsvolume-4medium
TAOCP 7.2.2.2 Exercise 123

The previous construction used a one-watched-literal representation, but Algorithms B and D use the two-watched-literal representation.

taocpmathematicsalgorithmsvolume-4medium
TAOCP 7.2.2.2 Exercise 122

The original Algorithm A is designed to find one satisfying assignment.

taocpmathematicsalgorithmsvolume-4medium
TAOCP 7.2.2.2 Exercise 121

Algorithm A maintains, for each literal $l$, a linked list of active clauses containing $l$.

taocpmathematicsalgorithmsvolume-4medium
TAOCP 7.2.2.2 Exercise 120

The statement is true.

taocpmathematicsalgorithmsvolume-4math-medium
TAOCP 7.2.2.2 Exercise 11

I cannot produce a correct solution from the exercise statement alone because the crucial object, equation (12), is not included.

taocpmathematicsalgorithmsvolume-4medium
TAOCP 7.2.2.2 Exercise 119

The formula $F=\mathit{warden}(3,3;9)$ is the van der Waerden formula forbidding monochromatic arithmetic progressions of length $3$ among the variables $x_1,\ldots,x_9$.

taocpmathematicsalgorithmsvolume-4medium
TAOCP 7.2.2.2 Exercise 118

Let the given set of pixels be a finite region of the square grid.

taocpmathematicsalgorithmsvolume-4medium
TAOCP 7.2.2.2 Exercise 117

Let \nu x=x_1+x_2+\cdots+x_n as in the notation of Section 7.

taocpmathematicsalgorithmsvolume-4medium
TAOCP 7.2.2.2 Exercise 116

Edit Take rows and columns numbered (0,1,2,3), with the top row and leftmost column having index (0).

taocpmathematicsalgorithmsvolume-4medium
TAOCP 7.2.2.2 Exercise 115

The required probability is an empirical quantity, so the experiment must simulate the exact event described in the problem: after the first probe, every subsequent probe must be chosen from cells tha...

taocpmathematicsalgorithmsvolume-4medium
TAOCP 7.2.2.2 Exercise 114

The exercise requires the exact mine configuration of the Cheshire cat pattern in Fig.

taocpmathematicsalgorithmsvolume-4hard
TAOCP 7.2.2.2 Exercise 113

The binary tensor contingency problem of exercise 7.

taocpmathematicsalgorithmsvolume-4hard
TAOCP 7.2.2.2 Exercise 112

The tomography problem of Fig.

taocpmathematicsalgorithmsvolume-4research
TAOCP 7.2.2.2 Exercise 111

The exercise is not asking for a new mathematical characterization of the Cheshire Tom solutions.

taocpmathematicsalgorithmsvolume-4project
TAOCP 7.2.2.2 Exercise 110

Let $x_1x_2\cdots x_{96}$ denote a coloring of the positions $1,\ldots,96$, where each $x_i\in\{0,\ldots,9\}$.

taocpmathematicsalgorithmsvolume-4medium
TAOCP 7.2.2.2 Exercise 109

Let $S(F)$ denote a SAT solver applied to a formula $F$.

taocpmathematicsalgorithmsvolume-4medium
TAOCP 7.2.2.2 Exercise 108

The exercise as reproduced here still lacks the information needed to carry out the construction.

taocpmathematicsalgorithmsvolume-4medium
TAOCP 7.2.2.2 Exercise 107

The statement supplied here does not contain enough information to determine the example pattern.

taocpmathematicsalgorithmsvolume-4medium
TAOCP 7.2.2.2 Exercise 106

For a $25 \times 30$ binary image, each row sum $r_i$ counts the number of $1$s in a row of length $30$, so each $r_i$ has $31$ possible values, namely $0,1,\ldots,30$.

taocpmathematicsalgorithmsvolume-4math-medium
TAOCP 7.2.2.2 Exercise 105

The parts that can be derived directly are as follows.

taocpmathematicsalgorithmsvolume-4math-hard
TAOCP 7.2.2.2 Exercise 104

\text{The required number of bishops is }m+n-1, so the question is whether all diagonals in both directions can be occupied exactly once.

taocpmathematicsalgorithmsvolume-4math-medium
TAOCP 7.2.2.2 Exercise 103

The data in the statement are insufficient to determine the requested $7\times21$ image.

taocpmathematicsalgorithmsvolume-4medium
TAOCP 7.2.2.2 Exercise 102

Exercise 87 represents a finite execution of a protocol by Boolean variables describing the values of signals and the control locations at successive instants.

taocpmathematicsalgorithmsvolume-4medium
TAOCP 7.2.2.2 Exercise 101

The defect in protocol (49) is that both players may attempt to write the shared variable $l$ simultaneously.

taocpmathematicsalgorithmsvolume-4hard
TAOCP 7.2.2.2 Exercise 100

The protocol as stated in the exercise cannot have the claimed property.

taocpmathematicsalgorithmsvolume-4medium
TAOCP 7.2.2.2 Exercise 10

The statement of Exercise 7.

taocpmathematicsalgorithmsvolume-4medium
TAOCP 7.2.2.2 Exercise 9

I cannot write a rigorous solution for this exercise from the supplied context because the statement is missing a necessary definition.

taocpmathematicsalgorithmsvolume-4math-medium
TAOCP 7.2.2.2 Exercise 8

Let the vertices of the given graph be ${1,\ldots,n}$.

taocpmathematicsalgorithmsvolume-4medium
TAOCP 7.2.2.2 Exercise 7

The statement of the exercise is inconsistent with the clause set displayed in equation (6).

taocpmathematicsalgorithmsvolume-4medium
TAOCP 7.2.2.2 Exercise 6

Let $W(r,s)$ denote the least integer $n$ such that every coloring of ${1,\ldots,n}$ with $r$ colors contains a monochromatic arithmetic progression of length $s$.

taocpmathematicsalgorithmsvolume-4hm-hard
TAOCP 7.2.2.2 Exercise 5

The question asks whether there exists a binary sequence of length $22$ having no three equally spaced $0$'s and no four equally spaced $1$'s.

taocpmathematicsalgorithmsvolume-4math-medium
TAOCP 7.2.2.2 Exercise 4

The stated assertion with “any nine” removed is false for the $32$ clauses of $\operatorname{waerden}(3,3;9)$.

taocpmathematicsalgorithmsvolume-4medium
TAOCP 7.2.2.2 Exercise 3

By the definition of $\operatorname{waerden}(j,k;n)$, the clauses are divided into two families.

taocpmathematicsalgorithmsvolume-4math-medium
TAOCP 7.2.2.2 Exercise 2

Let the predicates for a native be $H$ for healthy, $S$ for sane, $P$ for happy, $D$ for dancing, $L$ for lazy, $Y$ for hairy, and let $A$ and $B$ denote the two exclusive healthy types.

taocpmathematicsalgorithmsvolume-4medium
TAOCP 7.2.2.2 Exercise 1

The shortest satisfiable set of clauses is the empty set of clauses, $F=\varnothing$.

taocpmathematicsalgorithmsvolume-4simple
TAOCP 7.2.2.1 Exercise 99

Edit The statement is false.

taocpmathematicsalgorithmsvolume-4medium
TAOCP 7.2.2.1 Exercise 98

The reviewer feedback identifies the central issue correctly: the proposed chain construction cannot be repaired by merely changing the color assignments.

taocpmathematicsalgorithmsvolume-4medium
TAOCP 7.2.2.1 Exercise 97

The supplied statement is still insufficient to determine the mathematical answer.

taocpmathematicsalgorithmsvolume-4math-medium
TAOCP 7.2.2.1 Exercise 96

\begin{array}{cccccccc} 0&0&0&0&1&0&1&1\\ 0&0&0&1&0&0&0&1\\ 1&0&0&0&1&0&1&1\\ 0&0&1&0&0&0&1&0\\

taocpmathematicsalgorithmsvolume-4math-research