brain

tamnd's digital brain — notes, problems, research

41410 notes

TAOCP 7.2.2.2 Exercise 265

Algorithm C maintains for each clause $e$ two watched literals, denoted $l_0$ and $l_1$.

taocpmathematicsalgorithmsvolume-4medium
TAOCP 7.2.2.2 Exercise 264

The purpose of the move codes is to expose the progress of Algorithm C without changing its behavior.

taocpmathematicsalgorithmsvolume-4medium
TAOCP 7.2.2.2 Exercise 263

The information supplied is insufficient to write a correct solution to Exercise 7.

taocpmathematicsalgorithmsvolume-4medium
TAOCP 7.2.2.2 Exercise 262

In Algorithm C, the heap stores the variables ordered by their current activity values $\operatorname{ACT}(j)$.

taocpmathematicsalgorithmsvolume-4medium
TAOCP 7.2.2.2 Exercise 261

The solution addresses the intended topic of the exercise: the low-level mechanics of the unit-propagation loop in Algorithm C, including watch-list processing, watch movement, link updates, trail ins...

taocpmathematicsalgorithmsvolume-4medium
TAOCP 7.2.2.2 Exercise 260

Step C1 prepares the data structures that Algorithm C uses during its search through the clauses.

taocpmathematicsalgorithmsvolume-4medium
TAOCP 7.2.2.2 Exercise 26

Sinz's clauses are (\bar{s}_j^k\vee s_{j+1}^k), \qquad 1\le j<n-r,\quad 1\le k\le r, \tag{18}

taocpmathematicsalgorithmsvolume-4medium
TAOCP 7.2.2.2 Exercise 259

No.

taocpmathematicsalgorithmsvolume-4math-medium
TAOCP 7.2.2.2 Exercise 258

The proposed solution does not answer Exercise 7.

taocpmathematicsalgorithmsvolume-4medium
TAOCP 7.2.2.2 Exercise 257

Let c=(l^7\vee b_1\vee\cdots\vee b_r) be the newly learned clause produced by conflict analysis.

taocpmathematicsalgorithmsvolume-4hard
TAOCP 7.2.2.2 Exercise 256

Message delivery timed out.

taocpmathematicsalgorithmsvolume-4medium
TAOCP 7.2.2.2 Exercise 255

Consider the ternary-clause satisfiability problem F=\{125,\ 134,\ \bar4\bar5\bar5\}.

taocpmathematicsalgorithmsvolume-4medium
TAOCP 7.2.2.2 Exercise 254

The clause set is F=\{12,13,23,24,34\}.

taocpmathematicsalgorithmsvolume-4medium
TAOCP 7.2.2.2 Exercise 253

The data supplied are not sufficient to derive the two learned clauses.

taocpmathematicsalgorithmsvolume-4medium
TAOCP 7.2.2.2 Exercise 252

Exercise 252 depends on the precise form of the anti-maximal-element clauses (99)–(101) and on the definition of variable elimination and subsumption from Section 7.

taocpmathematicsalgorithmsvolume-4math-hard
TAOCP 7.2.2.2 Exercise 251

I cannot produce a reliable corrected solution for this exercise from the material currently available in the conversation.

taocpmathematicsalgorithmsvolume-4hard
TAOCP 7.2.2.2 Exercise 250

For $R'$ in equation (7), the solution requires the literals $4$, $\bar{1}$, and $2$.

taocpmathematicsalgorithmsvolume-4
TAOCP 7.2.2.2 Exercise 249

I need the definitions of **Algorithm I**, **Cook's Method IA**, and the formula or clause set labeled **(112)** from the section before I can produce a rigorous solution to Exercise 7.

taocpmathematicsalgorithmsvolume-4medium
TAOCP 7.2.2.2 Exercise 248

By (112), the six clauses are 1234,\qquad 12\bar{3},\qquad \bar{1}\bar{2},\qquad \bar{1}3,\qquad 2\bar{3},\qquad 3\bar{4}.

taocpmathematicsalgorithmsvolume-4math-medium
TAOCP 7.2.2.2 Exercise 247

You've hit your limit.

taocpmathematicsalgorithmsvolume-4medium
TAOCP 7.2.2.2 Exercise 246

Let $G=(V,E)$ be the labeled graph from the previous exercise.

taocpmathematicsalgorithmsvolume-4math-hard
TAOCP 7.2.2.2 Exercise 245

Write \alpha(V')=\bigcup_{v\in V'}\alpha(v) for $V'\subseteq V$.

taocpmathematicsalgorithmsvolume-4math-hard
TAOCP 7.2.2.2 Exercise 244

For a clause on $A \cup B$, the literals involving variables in $A$ and the literals involving variables in $B$ form two disjoint parts.

taocpmathematicsalgorithmsvolume-4math-medium
TAOCP 7.2.2.2 Exercise 243

Let m=\lfloor cn\rfloor .

taocpmathematicsalgorithmsvolume-4hm-hard
TAOCP 7.2.2.2 Exercise 242

You've hit your limit.

taocpmathematicsalgorithmsvolume-4math-medium
TAOCP 7.2.2.2 Exercise 241

\textbf{Solution.

taocpmathematicsalgorithmsvolume-4medium
TAOCP 7.2.2.2 Exercise 240

Let A=\{a_0,\ldots,a_m\},\qquad B=\{b_1,\ldots,b_m\}.

taocpmathematicsalgorithmsvolume-4hm-medium
TAOCP 7.2.2.2 Exercise 24

The variable $b_1^r$ is the auxiliary variable at the root asserting that the whole tree contains at least one true input.

taocpmathematicsalgorithmsvolume-4math-hard
TAOCP 7.2.2.2 Exercise 239

The statement in the prompt is not the statement of Exercise 7.

taocpmathematicsalgorithmsvolume-4math-medium
TAOCP 7.2.2.2 Exercise 238

I need the statement of **Lemma B** to give a rigorous solution.

taocpmathematicsalgorithmsvolume-4hm-medium
TAOCP 7.2.2.2 Exercise 237

Let the pigeonhole clauses (106) and (107) be the usual formulation of the assertion that $m+1$ pigeons cannot be placed injectively into $m$ holes.

taocpmathematicsalgorithmsvolume-4hard
TAOCP 7.2.2.2 Exercise 236

\boxed{\text{Yes}} The chain constructed in Exercise 235 is in fact as short as possible.

taocpmathematicsalgorithmsvolume-4simple
TAOCP 7.2.2.2 Exercise 235

Let $P_m$ denote the pigeonhole clauses with $m+1$ pigeons and $m$ holes, namely x_{j1}\vee x_{j2}\vee\cdots\vee x_{jm},\qquad 0\le j\le m, together with

taocpmathematicsalgorithmsvolume-4hard
TAOCP 7.2.2.2 Exercise 234

Let the pigeonhole clauses (106) and (107) be the usual clauses for $m+1$ pigeons and $m$ holes, with variables $x_{ij}$ meaning that pigeon $i$ is placed in hole $j$.

taocpmathematicsalgorithmsvolume-4medium
TAOCP 7.2.2.2 Exercise 233

Let the clauses in the resolution chain (105) be denoted by $C_1,\ldots,C_{22}$ in the order in which they are displayed.

taocpmathematicsalgorithmsvolume-4medium
TAOCP 7.2.2.2 Exercise 232

Let the notation for the clauses of $\mathit{fsnark}(q)$ be the notation of exercise 176.

taocpmathematicsalgorithmsvolume-4math-hard
TAOCP 7.2.2.2 Exercise 231

The previous argument used the wrong intermediate clauses.

taocpmathematicsalgorithmsvolume-4math-hard
TAOCP 7.2.2.2 Exercise 230

Edit Let (F) denote the set of clauses from the previous exercise after removing the tautological cases (i=j) from ((100')).

taocpmathematicsalgorithmsvolume-4math-medium
TAOCP 7.2.2.2 Exercise 23

Let $x_j$ denote the original variables and let $s_j^k$ denote the auxiliary variables used in the encoding of the symmetric threshold constraint $S_{\le r}(x_1,\ldots,x_n)$.

taocpmathematicsalgorithmsvolume-4medium
TAOCP 7.2.2.2 Exercise 229

Error in message stream

taocpmathematicsalgorithmsvolume-4math-medium
TAOCP 7.2.2.2 Exercise 228

Let the Stålmarck clauses (99)–(101) be the pigeonhole clauses with variables $x_{ij}$, where $x_{ij}$ means that pigeon $i$ is placed in hole $j$.

taocpmathematicsalgorithmsvolume-4math-medium
TAOCP 7.2.2.2 Exercise 227

The corrected proof below replaces the invalid branch-selection argument and gives a direct construction for both directions of the equality.

taocpmathematicsalgorithmsvolume-4math-hard
TAOCP 7.2.2.2 Exercise 226

Edit Let (T) be the given resolution refutation tree with (N) leaves.

taocpmathematicsalgorithmsvolume-4math-hard
TAOCP 7.2.2.2 Exercise 225

Let a resolution tree be oriented with the empty clause at the root and the axioms at the leaves.

taocpmathematicsalgorithmsvolume-4math-hard
TAOCP 7.2.2.2 Exercise 224

Let $T$ be the given resolution tree.

taocpmathematicsalgorithmsvolume-4math-medium
TAOCP 7.2.2.2 Exercise 218

The ternary operator $u,?,v:w$ has value $v$ when $u=1$ and value $w$ when $u=0$.

taocpmathematicsalgorithmsvolume-4medium
TAOCP 7.2.2.2 Exercise 217

The statement is false.

taocpmathematicsalgorithmsvolume-4medium
TAOCP 7.2.2.2 Exercise 216

The previous argument correctly identified that the objects counted by ordinary backtracking are no longer the nodes of the new search tree.

taocpmathematicsalgorithmsvolume-4hm-project
TAOCP 7.2.2.2 Exercise 215

Let $A_l$ be the number of nodes on level $l$ of the backtrack tree.

taocpmathematicsalgorithmsvolume-4hm-medium
TAOCP 7.2.2.2 Exercise 214

Let T(z)=\sum_{n\geq 0}T_n\frac{z^n}{n!

taocpmathematicsalgorithmsvolume-4hm-project
TAOCP 7.2.2.2 Exercise 213

Let a random instance consist of $m$ independent clauses on the variables $x_1,\ldots,x_n$.

taocpmathematicsalgorithmsvolume-4math-hard
TAOCP 7.2.2.2 Exercise 212

Let $K_M \square K_N$ denote the grid graph whose vertices are pairs $(i,j)$, with adjacency whenever either the first or the second coordinate agrees and the other coordinate differs.

taocpmathematicsalgorithmsvolume-4hard
TAOCP 7.2.2.2 Exercise 211

The notation in the exercise is a compressed notation for the family of grid graphs $K_N\square K_3$, where $N$ is not fixed.

taocpmathematicsalgorithmsvolume-4hard
TAOCP 7.2.2.2 Exercise 210

Working

taocpmathematicsalgorithmsvolume-4math-project
TAOCP 7.2.2.2 Exercise 21

Edit Let (G=(V,E)) be the graph of Fig.

taocpmathematicsalgorithmsvolume-4medium
TAOCP 7.2.2.2 Exercise 209

The reviewer feedback identifies a mismatch between the stated hypothesis and the hypothesis of the actual TAOCP exercise.

taocpmathematicsalgorithmsvolume-4medium
TAOCP 7.2.2.2 Exercise 208

Solution to TAOCP 7.2.2.2 Exercise 208.

taocpmathematicsalgorithmsvolume-4medium
TAOCP 7.2.2.2 Exercise 207

Solution to TAOCP 7.2.2.2 Exercise 207.

taocpmathematicsalgorithmsvolume-4medium
TAOCP 7.2.2.2 Exercise 206

Let $H=F\sqcup F'$.

taocpmathematicsalgorithmsvolume-4math-medium
TAOCP 7.2.2.2 Exercise 205

A $4$SAT problem is allowed to have clauses of length at most $4$.

taocpmathematicsalgorithmsvolume-4hard
TAOCP 7.2.2.2 Exercise 204

Working

taocpmathematicsalgorithmsvolume-4hard
TAOCP 7.2.2.2 Exercise 203

Exercise 7.

taocpmathematicsalgorithmsvolume-4hm-research
TAOCP 7.2.2.2 Exercise 202

\textbf{Solution.

taocpmathematicsalgorithmsvolume-4hm-medium
TAOCP 7.2.2.2 Exercise 201

I cannot produce a reliable rigorous solution for Exercise 7.

taocpmathematicsalgorithmsvolume-4hm-hard
TAOCP 7.2.2.2 Exercise 200

Let the implication digraph of a 2SAT formula have one vertex for each literal.

taocpmathematicsalgorithmsvolume-4math-medium
TAOCP 7.2.2.2 Exercise 20

\textbf{Let }G\text{ be the dual graph of McGregor's map.

taocpmathematicsalgorithmsvolume-4project
TAOCP 7.2.2.2 Exercise 199

Edit Let the (t) specified letters be (1,\ldots,t).

taocpmathematicsalgorithmsvolume-4math-medium
TAOCP 7.2.2.2 Exercise 198

I cannot give a valid corrected proof of the statement exactly as written, because the exercise statement in the prompt contains a substantive error.

taocpmathematicsalgorithmsvolume-4hm-hard
TAOCP 7.2.2.2 Exercise 197

The reviewer’s objection reveals that the stated exercise is not correct as written.

taocpmathematicsalgorithmsvolume-4hm-medium
TAOCP 7.2.2.2 Exercise 196

Let $Y$ denote the number of easy clauses.

taocpmathematicsalgorithmsvolume-4hm-medium
TAOCP 7.2.2.2 Exercise 195

Let $m=\lfloor(2^k\ln 2)n\rfloor$ be the number of random $k$SAT clauses.

taocpmathematicsalgorithmsvolume-4hm-medium
TAOCP 7.2.2.2 Exercise 194

Let $m=\alpha n$.

taocpmathematicsalgorithmsvolume-4hm-medium
TAOCP 7.2.2.2 Exercise 193

Let $S_{k,n}$ denote the satisfiability threshold defined in (81) of Section 7.

taocpmathematicsalgorithmsvolume-4hm-research
TAOCP 7.2.2.2 Exercise 192

Edit Let (N) be the total number of possible clauses in the (k)-SAT instance.

taocpmathematicsalgorithmsvolume-4hm-medium
TAOCP 7.2.2.2 Exercise 191

Let $F$ be the set of assignments on which a Boolean function $f$ of four variables is false.

taocpmathematicsalgorithmsvolume-4math-medium
TAOCP 7.2.2.2 Exercise 190

Define the Boolean function $H(x_1,x_2,x_3,x_4)$ by H(x_1,x_2,x_3,x_4)= \begin{cases} 0,&(x_1,x_2,x_3,x_4)=(0,0,0,0),\\ 1,&\text{otherwise}.

taocpmathematicsalgorithmsvolume-4math-medium
TAOCP 7.2.2.2 Exercise 19

\text{Let }N=n(n+1) be the number of vertices of McGregor’s graph of order $n$.

taocpmathematicsalgorithmsvolume-4hard
TAOCP 7.2.2.2 Exercise 189

Let $n=50$.

taocpmathematicsalgorithmsvolume-4hard
TAOCP 7.2.2.2 Exercise 188

In the random SAT model used here, a formula with $m$ clauses is formed by choosing each clause independently and uniformly from the possible clauses.

taocpmathematicsalgorithmsvolume-4hm-medium
TAOCP 7.2.2.2 Exercise 187

For $k=n$, every clause contains every variable exactly once.

taocpmathematicsalgorithmsvolume-4math-medium
TAOCP 7.2.2.2 Exercise 186

By equation (77), \hat q_m=\sum_{t=0}^{N} \binom{m}{t}t!

taocpmathematicsalgorithmsvolume-4math-medium
TAOCP 7.2.2.2 Exercise 185

Analyzing

taocpmathematicsalgorithmsvolume-4math-medium
TAOCP 7.2.2.2 Exercise 184

The statement of the exercise is not sufficient to produce a correct solution.

taocpmathematicsalgorithmsvolume-4math-medium
TAOCP 7.2.2.2 Exercise 183

Edit Let (T_m) be the number of satisfying assignments remaining after (m) clauses have been selected, and let (P) be the number of clauses selected when satisfiability is first lost.

taocpmathematicsalgorithmsvolume-4math-hard
TAOCP 7.2.2.2 Exercise 182

\text{Let }T_m=T_m(C) denote the number of assignments satisfying a set $C$ of $m$ distinct clauses chosen from the $80$ possible clauses on five variables.

taocpmathematicsalgorithmsvolume-4math-medium
TAOCP 7.2.2.2 Exercise 181

Edit The construction for (Q_m) from the preceding exercise can be extended by replacing the value stored at each BDD node by the entire probability distribution of the statistic defining (T_m).

taocpmathematicsalgorithmsvolume-4medium
TAOCP 7.2.2.2 Exercise 180

The statement of exercise 7.

taocpmathematicsalgorithmsvolume-4medium
TAOCP 7.2.2.2 Exercise 18

The corrected solution is as follows.

taocpmathematicsalgorithmsvolume-4hard
TAOCP 7.2.2.2 Exercise 179

A filling is an exact cover, so the natural recurrence counts the desired objects.

taocpmathematicsalgorithmsvolume-4medium
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