Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A112535
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A112535 Number of truth tables generated by 3-CNF expressions of n variables. +0
5
256, 43146, 120510132 (list; graph; listen)
OFFSET

3,1

COMMENT

For n=5, computing the number of 3-CNF truth tables took 2^32 bytes and 2^38 iterations. Computing the same number for n=6 may require 2^64 bits and 2^71 iterations.

LINKS

C. B. Barber, ttcnf 2005.1 (April 2005).

C. B. Barber, www.qhull.org/ttcnf.

PROGRAM

The following program generates all truth tables of k-CNF expressions of n variables:

start with the truth table (2^2^n) - 1 //e.g., 0xFFFF for n=4

for each new truth table //e.g., 0xFFFF

for each (n choose k) variables //e.g., a, c, d

for each (2^k) clause of these variables //e.g., (a or not c or not d)

generate a truth table from the clause and previous truth table //e.g., NewTT = PrevTT and (...)

Bit operations allow an efficient implementation of the last step. If you represent each variable by its truth table, A, B, ..., in 1-CNF, then the last step is 'NewTT = PrevTT and (A or B or C ...)'. For example, with four variables a, b, c, and d, the 1-CNF truth table for 'a' is 0xFF00, 'not c' is 0x3333, and 'not d' is 0x5555. The corresponding step is 'NewTT = PrevTT and 0xFFBB'.

CROSSREFS

Cf. A109457, A112650, A000157, A000371, A000613, A000618, A003181.

Sequence in context: A017212 A018798 A017320 this_sequence A132637 A114850 A017440

Adjacent sequences: A112532 A112533 A112534 this_sequence A112536 A112537 A112538

KEYWORD

bref,hard,nonn

AUTHOR

C. Bradford Barber (bradb(AT)shore.net), Dec 13 2005

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified July 26 23:19 EDT 2008. Contains 142293 sequences.


AT&T Labs Research