Debian Codegraph @

texk/web2c/cwebdir/tests/ham.ch

raw
1 Limbo.
2
3 @x l.1
4 \datethis
5 @s try x
6 @y
7 \datethis
8 \def\title{HAM}
9 @z
10
11 Section 1.
12
13 @x l.11
14 is a modulus |m|, which causes every $m$th solution to be printed.
15 @y
16 is a modulus~$m$, which causes every $m$th solution to be printed.
17 @z
18
19 @x l.15
20 @d deg u.I
21 @y
22 @d deg u.I
23 @-deg@>
24 @$deg {HAM}1 =\|u.\|I@>
25 @%
26 @$u {GB\_\,GRAPH}9 \&{util}@>
27 @z
28
29 @x l.21
30 main(int argc,char *argv[])
31 @y
32 @#
33 int main(int argc,char *argv[])
34 @z
35
36 @x l.33
37 for (v=g->vertices;v<g->vertices+g->n;v++) printf(" %d",v->deg);
38 @y
39 for (v=g->vertices;v<g->vertices+g->n;v++) printf(" %ld",v->deg);
40 @z
41
42 @x l.36
43 printf("The minimum degree is %d (vertex %s)!\n",x->deg,x->name);
44 @y
45 printf("The minimum degree is %ld (vertex %s)!\n",x->deg,x->name);
46 @z
47
48 @x l.46
49 for (v=g->vertices;v<g->vertices+g->n;v++) printf(" %d",v->deg);
50 @y
51 for (v=g->vertices;v<g->vertices+g->n;v++) printf(" %ld",v->deg);
52 @z
53
54 Section 2.
55
56 @x l.50
57 @ @<Process the command line, inputting the graph@>=
58 @y
59 @r @ @<Process the command line, inputting the graph@>=
60 @z
61
62 Section 3.
63
64 @x l.58
65 @ Vertices that have already appeared in the path are ``taken,'' and
66 @y
67 @ Vertices that have already appeared in the path are ``taken,'' and
68 @-taken@>
69 @$taken {HAM}3 =\|v.\|I@>
70 @%
71 @$v {HAM}1 \&{register} \&{Vertex} ${}{*}{}$@>
72 @$v {GB\_\,GRAPH}9 \&{util}@>
73 @$I {GB\_\,GRAPH}8 \&{long}@>
74 @z
75
76 Section 4.
77
78 @x l.85
79 I may learn my lesson.
80 @y
81 I may learn my lesson.
82 @-k@>
83 @-vert@>
84 @-ark@>
85 @$vert {HAM}4 =\|w.\|V@>
86 @$ark {HAM}4 =\|x.\|A@>
87 @%
88 @$w {GB\_\,GRAPH}9 \&{util}@>
89 @$x {GB\_\,GRAPH}9 \&{util}@>
90 @$x {HAM}1 \&{register} \&{Vertex} ${}{*}{}$@>
91 @z
92
93 @x l.92
94 x->taken=1;@+t->vert=x;
95 @y
96 x->taken=1;@+t->vert=x;@+
97 @z
98
99 @x l.97
100 try: @<Look at edge |a| and its successors, advancing if it is a valid move@>;
101 @y
102 try_next: @<Look at edge |a| and its successors, advancing if it is a valid move@>;
103 @z
104
105 Section 8.
106
107 @x l.148
108 goto try;
109 @y
110 goto try_next;
111 @z
112
113 Section 10.
114
115 @x l.163
116 @*Index.
117 @y
118 @z