<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE message PUBLIC
  "-//MLarc//DTD MLarc output files//EN"
  "../../mlarc.dtd"[
  <!ATTLIST message
    listname CDATA #REQUIRED
    title CDATA #REQUIRED
  >
]>

  <?xml-stylesheet href="../../mlarc.xsl" type="text/xsl"?>


<message 
  url="2006/02/58fc7f8e56e910d13a207ef052e798b2"
  from="Brian Hurt &lt;bhurt@s...&gt;"
  author="Brian Hurt"
  date="2006-02-27T14:48:35"
  subject="Re: [Caml-list] algorithm question"
  prev="2006/02/d55860f3c5bb25c91ac81db7386ae8b9"
  next="2006/02/e5953c6e2320144461b87a07084530c0"
  prev-in-thread="2006/02/3f0f8f1185a34b2b4ddc652d019d62d9"
  prev-thread="2006/02/1681fddd9168a27c9d00d28b96b4af41"
  next-thread="2006/02/caba8251dd7fcc522c2f8ffb14418b50"
  root="../../"
  period="month"
  listname="caml-list"
  title="Archives of the Caml mailing list">

<thread subject="algorithm question">
<msg 
  url="2006/02/da72632e1d8178a78fd1184bc05904b2"
  from="Michael Wohlwend &lt;micha-1@f...&gt;"
  author="Michael Wohlwend"
  date="2006-02-26T20:21:14"
  subject="algorithm question">
<msg 
  url="2006/02/69ca8493c1f140556f85214ca9df04fc"
  from="Diego Olivier Fernandez Pons &lt;Diego.FERNANDEZ_PONS@e...&gt;"
  author="Diego Olivier Fernandez Pons"
  date="2006-02-26T20:48:03"
  subject="Re: [Caml-list] algorithm question">
<msg 
  url="2006/02/d4f878af9a94787607a08fe0fc70f5b6"
  from="Michael Wohlwend &lt;micha-1@f...&gt;"
  author="Michael Wohlwend"
  date="2006-02-26T21:26:56"
  subject="Re: [Caml-list] algorithm question">
</msg>
</msg>
<msg 
  url="2006/02/abd46f59560ffbc55f9266923fb44a10"
  from="Brian Hurt &lt;bhurt@s...&gt;"
  author="Brian Hurt"
  date="2006-02-26T20:51:26"
  subject="Re: [Caml-list] algorithm question">
<msg 
  url="2006/02/042401b65f46857468db67fa9a401b16"
  from="Diego Olivier Fernandez Pons &lt;Diego.FERNANDEZ_PONS@e...&gt;"
  author="Diego Olivier Fernandez Pons"
  date="2006-02-26T21:03:04"
  subject="Re: [Caml-list] algorithm question">
</msg>
<msg 
  url="2006/02/1c19946b3ecb11358aba733f85dba692"
  from="Jean-Christophe Filliatre &lt;filliatr@l...&gt;"
  author="Jean-Christophe Filliatre"
  date="2006-02-27T10:31:10"
  subject="Re: [Caml-list] algorithm question">
<msg 
  url="2006/02/3f0f8f1185a34b2b4ddc652d019d62d9"
  from="Diego Olivier Fernandez Pons &lt;Diego.FERNANDEZ_PONS@e...&gt;"
  author="Diego Olivier Fernandez Pons"
  date="2006-02-27T11:02:41"
  subject="Re: [Caml-list] algorithm question">
</msg>
<msg 
  url="2006/02/58fc7f8e56e910d13a207ef052e798b2"
  from="Brian Hurt &lt;bhurt@s...&gt;"
  author="Brian Hurt"
  date="2006-02-27T14:48:35"
  subject="Re: [Caml-list] algorithm question">
</msg>
</msg>
</msg>
</msg>
</thread>

<contents>


On Mon, 27 Feb 2006, Jean-Christophe Filliatre wrote:

&gt;
&gt; &gt; &gt; I want to implement the dancing link algorithm as described here:
&gt; &gt; &gt; http://www-cs-faculty.stanford.edu/~knuth/papers/dancing-color.ps.gz
&gt; &gt; &gt;
&gt; &gt; &gt; has someone an idea if there is an equally fast way to implent
&gt; &gt; &gt; this more functional?
&gt; &gt; [...]
&gt; &gt; With a purely functional (aka applicative aka
&gt; &gt; immutable) data structure, modifications are not destructive.  After you
&gt; &gt; add a new element into a map, for example, the old map is still valid and
&gt; &gt; not changed.  So you can support undoing operations by just keeping
&gt; &gt; references to the old copy of the data structure around, and dropping the
&gt; &gt; new (modified) data structure and returning to the old one.
&gt;
&gt; For the little story, I heard  this ``dancing links'' talk by Knuth at
&gt; Stanford,  which was simply  delightful, and  at the  end I  asked him
&gt; about  the   use  of   persistent  data  structures   in  backtracking
&gt; algorithms. I had to give a  few explainations about what I meant, and
&gt; when  I mentioned  ML, Knuth  simply replied:  ``oh, the  stuff  by Mc
&gt; Carthy? I've never been convinced about it...''

Which is something I find vaguely humorous.  When he wrote the first 
version of AoCP, he wrote all the examples in assembler, because he wanted 
to use a language that wouldn't go out of date in 50 years.  Of course, 
what happened was the architecture design changed so radically over the 
next couple of decades that he needed to rewrite the books in a new 
assembly.

On the other hand, a core, simplified Lisp was relevent thirty years ago, 
is relevent today, and is the most likely language to still be relevent 
thirty years from now.

Brian

</contents>

</message>

