brain

tamnd's digital brain — notes, problems, research

41394 notes

TAOCP 7.2.2.2 Exercise 343

The proposed solution answers all parts of the exercise and, unlike the earlier attempts, the proof of part (b) uses the correct key idea.

taocpmathematicsalgorithmsvolume-4math-medium
TAOCP 7.2.2.2 Exercise 342

The proposed solution answers all parts of the exercise and, unlike the earlier attempts, the proof of part (b) uses the correct key idea.

taocpmathematicsalgorithmsvolume-4hm-medium
TAOCP 7.2.2.2 Exercise 341

The proposed solution answers all parts of the exercise and, unlike the earlier attempts, the proof of part (b) uses the correct key idea.

taocpmathematicsalgorithmsvolume-4math-medium
TAOCP 7.2.2.2 Exercise 340

The proposed solution answers all parts of the exercise and, unlike the earlier attempts, the proof of part (b) uses the correct key idea.

taocpmathematicsalgorithmsvolume-4math-medium
TAOCP 7.2.2.2 Exercise 34

The proposed solution answers all parts of the exercise and, unlike the earlier attempts, the proof of part (b) uses the correct key idea.

taocpmathematicsalgorithmsvolume-4hm-hard
TAOCP 7.2.2.2 Exercise 339

Let $\alpha$ be a trace, represented by its occurrences $x_1,\ldots,x_n$.

taocpmathematicsalgorithmsvolume-4hm-hard
TAOCP 7.2.2.2 Exercise 338

The proposed solution does not answer the question asked.

taocpmathematicsalgorithmsvolume-4math-medium
TAOCP 7.2.2.2 Exercise 337

The proposed solution does not answer the question asked.

taocpmathematicsalgorithmsvolume-4math-medium
TAOCP 7.2.2.2 Exercise 336

The proposed solution does not answer the question asked.

taocpmathematicsalgorithmsvolume-4math-medium
TAOCP 7.2.2.2 Exercise 335

Let S=\sum_{\alpha\in A}\alpha and

taocpmathematicsalgorithmsvolume-4hm-hard
TAOCP 7.2.2.2 Exercise 333

Let S=\sum_{\alpha\in A}\alpha and

taocpmathematicsalgorithmsvolume-4math-medium
TAOCP 7.2.2.2 Exercise 332

Let $\alpha=x_1x_2\ldots x_n$ be a trace.

taocpmathematicsalgorithmsvolume-4medium
TAOCP 7.2.2.2 Exercise 331

Let $\alpha=x_1x_2\ldots x_n$ be a trace.

taocpmathematicsalgorithmsvolume-4math-medium
TAOCP 7.2.2.2 Exercise 330

Let $\alpha=x_1x_2\ldots x_n$ be a trace.

taocpmathematicsalgorithmsvolume-4medium
TAOCP 7.2.2.2 Exercise 33

Let $\alpha=x_1x_2\ldots x_n$ be a trace.

taocpmathematicsalgorithmsvolume-4medium
TAOCP 7.2.2.2 Exercise 329

Let $\alpha=x_1x_2\ldots x_n$ be a trace.

taocpmathematicsalgorithmsvolume-4medium
TAOCP 7.2.2.2 Exercise 328

Let $\alpha=x_1x_2\ldots x_n$ be a trace.

taocpmathematicsalgorithmsvolume-4medium
TAOCP 7.2.2.2 Exercise 327

Let $\alpha=x_1x_2\ldots x_n$ be a trace.

taocpmathematicsalgorithmsvolume-4medium
TAOCP 7.2.2.2 Exercise 326

Let $\alpha=x_1x_2\ldots x_n$ be a trace.

taocpmathematicsalgorithmsvolume-4medium
TAOCP 7.2.2.2 Exercise 325

Let $\alpha=x_1x_2\ldots x_n$ be a trace.

taocpmathematicsalgorithmsvolume-4medium
TAOCP 7.2.2.2 Exercise 324

Let $\alpha=x_1x_2\ldots x_n$ be a trace.

taocpmathematicsalgorithmsvolume-4medium
TAOCP 7.2.2.2 Exercise 323

The list (135) orders traces first by length and then lexicographically.

taocpmathematicsalgorithmsvolume-4simple
TAOCP 7.2.2.2 Exercise 322

Let the four events be represented by the pair of indicators $(A,C)$ and $(B,D)$.

taocpmathematicsalgorithmsvolume-4hm-hard
TAOCP 7.2.2.2 Exercise 321

Let the four events be represented by the pair of indicators $(A,C)$ and $(B,D)$.

taocpmathematicsalgorithmsvolume-4math-medium
TAOCP 7.2.2.2 Exercise 320

Let $\mu(G)$ denote the Möbius polynomial of a graph $G$ with all vertex probabilities equal to $p$.

taocpmathematicsalgorithmsvolume-4hm-medium
TAOCP 7.2.2.2 Exercise 32

The proposed solution does not answer Exercise 7.

taocpmathematicsalgorithmsvolume-4simple
TAOCP 7.2.2.2 Exercise 319

Let t=d-1 .

taocpmathematicsalgorithmsvolume-4hm-medium
TAOCP 7.2.2.2 Exercise 318

Let $t=d-1$.

taocpmathematicsalgorithmsvolume-4hm-hard
TAOCP 7.2.2.2 Exercise 317

Let $G$ be the dependency graph from (133), with vertices corresponding to the events $A_1,\ldots,A_m$.

taocpmathematicsalgorithmsvolume-4math-hard
TAOCP 7.2.2.2 Exercise 316

Theorem J is a direct consequence of Theorem L.

taocpmathematicsalgorithmsvolume-4hm-medium
TAOCP 7.2.2.2 Exercise 315

Theorem J states that if every vertex of $G$ has degree at most $d$, then the symmetric probability vector $(p,\ldots,p)$ belongs to $R(G)$ when p\leq \frac{(d-1)^{d-1}}{d^d}, for $d>1$.

taocpmathematicsalgorithmsvolume-4math-medium
TAOCP 7.2.2.2 Exercise 314

The statement of this exercise depends on two definitions that are not included in the supplied context: the probability distribution of exercise 306(k) and the generating functions referred to as the...

taocpmathematicsalgorithmsvolume-4project
TAOCP 7.2.2.2 Exercise 313

The statement of this exercise depends on two definitions that are not included in the supplied context: the probability distribution of exercise 306(k) and the generating functions referred to as the...

taocpmathematicsalgorithmsvolume-4medium
TAOCP 7.2.2.2 Exercise 312

The statement of this exercise depends on two definitions that are not included in the supplied context: the probability distribution of exercise 306(k) and the generating functions referred to as the...

taocpmathematicsalgorithmsvolume-4hm-medium
TAOCP 7.2.2.2 Exercise 311

The computation in this exercise is an experimental comparison, so the numerical values depend on the $100$ distributions $p^{(m)}$ defined in exercise 306(b) and on the exact cost function $l(N)$ def...

taocpmathematicsalgorithmsvolume-4medium
TAOCP 7.2.2.2 Exercise 310

The proposed solution has the correct high-level idea that the reluctant Fibonacci sequence should be generated by applying a reluctant schedule to Fibonacci values rather than by ordinary prefix conc...

taocpmathematicsalgorithmsvolume-4math-medium
TAOCP 7.2.2.2 Exercise 309

Solution to TAOCP 7.2.2.2 Exercise 309.

taocpmathematicsalgorithmsvolume-4medium
TAOCP 7.2.2.2 Exercise 308

The proposed solution does not answer the exact question asked.

taocpmathematicsalgorithmsvolume-4math-hard
TAOCP 7.2.2.2 Exercise 307

The proposed solution does not answer Exercise 7.

taocpmathematicsalgorithmsvolume-4hm-hard
TAOCP 7.2.2.2 Exercise 306

The statement of exercise 7.

taocpmathematicsalgorithmsvolume-4hm-hard
TAOCP 7.2.2.2 Exercise 305

The statement of exercise 7.

taocpmathematicsalgorithmsvolume-4math-medium
TAOCP 7.2.2.2 Exercise 304

Exercise 7.

taocpmathematicsalgorithmsvolume-4hm-hard
TAOCP 7.2.2.2 Exercise 303

Exercise 7.

taocpmathematicsalgorithmsvolume-4hm-medium
TAOCP 7.2.2.2 Exercise 302

Exercise 7.

taocpmathematicsalgorithmsvolume-4hard
TAOCP 7.2.2.2 Exercise 301

The proposed solution does **not** answer the question asked.

taocpmathematicsalgorithmsvolume-4medium
TAOCP 7.2.2.2 Exercise 300

The proposed solution does **not** answer the question asked.

taocpmathematicsalgorithmsvolume-4medium
TAOCP 7.2.2.2 Exercise 30

The two constraints x_1+\cdots+x_n\le r and

taocpmathematicsalgorithmsvolume-4medium
TAOCP 7.2.2.2 Exercise 299

For $k=2$, the behavior of the random walk in Algorithm W becomes especially simple.

taocpmathematicsalgorithmsvolume-4hm-medium
TAOCP 7.2.2.2 Exercise 298

Equation (131) defines the quantity used for the flushing decision by replacing the old target value $M_t$ with a value farther in the future.

taocpmathematicsalgorithmsvolume-4hm-medium
TAOCP 7.2.2.2 Exercise 297

Equation (131) defines the quantity used for the flushing decision by replacing the old target value $M_t$ with a value farther in the future.

taocpmathematicsalgorithmsvolume-4hm-hard
TAOCP 7.2.2.2 Exercise 296

Equation (131) defines the quantity used for the flushing decision by replacing the old target value $M_t$ with a value farther in the future.

taocpmathematicsalgorithmsvolume-4hm-medium
TAOCP 7.2.2.2 Exercise 295

Equation (131) defines the quantity used for the flushing decision by replacing the old target value $M_t$ with a value farther in the future.

taocpmathematicsalgorithmsvolume-4math-medium
TAOCP 7.2.2.2 Exercise 294

Equation (131) defines the quantity used for the flushing decision by replacing the old target value $M_t$ with a value farther in the future.

taocpmathematicsalgorithmsvolume-4hm-medium
TAOCP 7.2.2.2 Exercise 293

Equation (131) defines the quantity used for the flushing decision by replacing the old target value $M_t$ with a value farther in the future.

taocpmathematicsalgorithmsvolume-4medium
TAOCP 7.2.2.2 Exercise 292

Let $A$ denote the current value of `AGILITY`.

taocpmathematicsalgorithmsvolume-4math-medium
TAOCP 7.2.2.2 Exercise 291

Algorithm C maintains a trail of assigned literals together with decision levels and reasons for forced assignments.

taocpmathematicsalgorithmsvolume-4medium
TAOCP 7.2.2.2 Exercise 290

Algorithm C is organized around the production of a conflict clause, and its ordinary stopping condition is reached when the current search either succeeds or produces a contradiction that yields the...

taocpmathematicsalgorithmsvolume-4medium
TAOCP 7.2.2.2 Exercise 29

Algorithm C is organized around the production of a conflict clause, and its ordinary stopping condition is reached when the current search either succeeds or produces a contradiction that yields the...

taocpmathematicsalgorithmsvolume-4medium
TAOCP 7.2.2.2 Exercise 289

Algorithm C is organized around the production of a conflict clause, and its ordinary stopping condition is reached when the current search either succeeds or produces a contradiction that yields the...

taocpmathematicsalgorithmsvolume-4math-medium
TAOCP 7.2.2.2 Exercise 288

Algorithm C is organized around the production of a conflict clause, and its ordinary stopping condition is reached when the current search either succeeds or produces a contradiction that yields the...

taocpmathematicsalgorithmsvolume-4hard
TAOCP 7.2.2.2 Exercise 287

Algorithm C is organized around the production of a conflict clause, and its ordinary stopping condition is reached when the current search either succeeds or produces a contradiction that yields the...

taocpmathematicsalgorithmsvolume-4medium
TAOCP 7.2.2.2 Exercise 286

I cannot produce a correct numerical solution for this exercise from the information provided.

taocpmathematicsalgorithmsvolume-4math-medium
TAOCP 7.2.2.2 Exercise 285

The numerical values requested in this exercise cannot be derived from the information supplied here.

taocpmathematicsalgorithmsvolume-4medium
TAOCP 7.2.2.2 Exercise 284

During the verification of condition (119), the verifier performs unit propagation on $F \cup {C_1,\ldots,C_{i-1}}$ after adding the unit literals of $\bar{C}_i$.

taocpmathematicsalgorithmsvolume-4medium
TAOCP 7.2.2.2 Exercise 283

Exercise 7.

taocpmathematicsalgorithmsvolume-4hm-research
TAOCP 7.2.2.2 Exercise 282

Let the clauses (99), (100), and (101) be denoted by \bar{x}_{jj},\qquad 1\le j\le m, \bar{x}_{ij}\vee\bar{x}_{jk}\vee x_{ik},

taocpmathematicsalgorithmsvolume-4math-hard
TAOCP 7.2.2.2 Exercise 281

Let C_j=(\bar{x}_{jj}),\qquad 1\le j\le m, T_{ijk}=(\bar{x}_{ij}\vee\bar{x}_{jk}\vee x_{ik}),

taocpmathematicsalgorithmsvolume-4medium
TAOCP 7.2.2.2 Exercise 280

Let F=\operatorname{cook}(j,k), \qquad n=j+k-1 .

taocpmathematicsalgorithmsvolume-4math-hard
TAOCP 7.2.2.2 Exercise 28

To require x_1+\cdots+x_n\ge 1, we can instead apply Sinz's construction for the equivalent condition

taocpmathematicsalgorithmsvolume-4medium
TAOCP 7.2.2.2 Exercise 279

The statement is true.

taocpmathematicsalgorithmsvolume-4math-medium
TAOCP 7.2.2.2 Exercise 278

Working

taocpmathematicsalgorithmsvolume-4medium
TAOCP 7.2.2.2 Exercise 277

A certificate of unsatisfiability $(C_1,\ldots,C_t)$ is a resolution refutation: each $C_i$ is either a clause of $F$ or a clause obtained from earlier clauses by one resolution step, and the final cl...

taocpmathematicsalgorithmsvolume-4math-medium
TAOCP 7.2.2.2 Exercise 276

The statement is true.

taocpmathematicsalgorithmsvolume-4math-simple
TAOCP 7.2.2.2 Exercise 275

Let $l$ be a literal that is assigned by propagation in Algorithm C, and let $R(l)$ denote the clause currently stored as its reason.

taocpmathematicsalgorithmsvolume-4medium
TAOCP 7.2.2.2 Exercise 274

Algorithm C maintains a trail of literals that have been assigned by decisions or by unit propagation.

taocpmathematicsalgorithmsvolume-4hard
TAOCP 7.2.2.2 Exercise 273

Let $W_n=waerden(j,k;n)$ denote the clause set expressing that a binary string $x_1,\ldots,x_n$ contains no arithmetic progression of length $j$ consisting entirely of one value or no arithmetic progr...

taocpmathematicsalgorithmsvolume-4hard
TAOCP 7.2.2.2 Exercise 272

The solution correctly establishes the central mathematical fact required by the exercise: a learned clause $C$ from Algorithm C may be accompanied by its reflected clause $C^R$.

taocpmathematicsalgorithmsvolume-4hard
TAOCP 7.2.2.2 Exercise 271

Let $C_{i-1}$ be the learned clause that is currently the last clause in MEM, and let $C_i$ be the next learned clause produced by step C9.

taocpmathematicsalgorithmsvolume-4medium
TAOCP 7.2.2.2 Exercise 270

The proposed solution addresses both parts of the exercise, but part (a) does not construct a valid example satisfying all of the stated conditions.

taocpmathematicsalgorithmsvolume-4medium
TAOCP 7.2.2.2 Exercise 27

Let $B_i$ denote the set of leaves below node $i$ in the binary tree used by Bailleux and Boufkhad's construction.

taocpmathematicsalgorithmsvolume-4medium
TAOCP 7.2.2.2 Exercise 269

Let the clause produced in step C7 be D=(\bar{l}^{\,0}\vee\bar{b}_1\vee\cdots\vee\bar{b}_r).

taocpmathematicsalgorithmsvolume-4hard
TAOCP 7.2.2.2 Exercise 268

Algorithm C stores each clause $e$ in a MEM block whose entries can be accessed by links from the watched-literal data structures.

taocpmathematicsalgorithmsvolume-4medium
TAOCP 7.2.2.2 Exercise 267

In Algorithm C, the inner loop of step C3 is designed around watched literals.

taocpmathematicsalgorithmsvolume-4medium
TAOCP 7.2.2.2 Exercise 266

In step C6, Algorithm C reaches a decision point when unit propagation has ended without producing a contradiction.

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