<?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/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"
  prev="2006/02/d4f878af9a94787607a08fe0fc70f5b6"
  next="2006/02/3f0f8f1185a34b2b4ddc652d019d62d9"
  prev-in-thread="2006/02/042401b65f46857468db67fa9a401b16"
  next-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>

 &gt; &gt; I want to implement the dancing link algorithm as described here:
 &gt; &gt; http://www-cs-faculty.stanford.edu/~knuth/papers/dancing-color.ps.gz
 &gt; &gt;
 &gt; &gt; has someone an idea if there is an equally fast way to implent
 &gt; &gt; this more functional? 
 &gt; [...]
 &gt; With a purely functional (aka applicative aka 
 &gt; immutable) data structure, modifications are not destructive.  After you 
 &gt; add a new element into a map, for example, the old map is still valid and 
 &gt; not changed.  So you can support undoing operations by just keeping 
 &gt; references to the old copy of the data structure around, and dropping the 
 &gt; new (modified) data structure and returning to the old one.

For the little story, I heard  this ``dancing links'' talk by Knuth at
Stanford,  which was simply  delightful, and  at the  end I  asked him
about  the   use  of   persistent  data  structures   in  backtracking
algorithms. I had to give a  few explainations about what I meant, and
when  I mentioned  ML, Knuth  simply replied:  ``oh, the  stuff  by Mc
Carthy? I've never been convinced about it...''

Though it was not very surprising, I still was a bit disappointed :-)

-- 
Jean-Christophe Filliātre (http://www.lri.fr/~filliatr)

</contents>

</message>

