In Lisp, should lists be replaced with trees?
1–10 of 43 posts
Re: In Lisp, should lists be replaced with trees?
#2Re: In Lisp, should lists be replaced with trees?
#3[1] http://labs.oracle.com/projects/plrg/Publications/ICFPAugust...
Re: In Lisp, should lists be replaced with trees?
#4Next article: "Should airplanes be fitted with big rotor on top to allow for vertical take off and hovering? .. like helicopters?"
Re: In Lisp, should lists be replaced with trees?
#5No, they aren't. A tree is acyclic by definition. Cons cells allow circular structures.
Re: In Lisp, should lists be replaced with trees?
#6"Branchs/trees are a superset of pairs/lists" No, they aren't. A tree is acyclic by definition. Cons cells allow circular structures.
For some interesting discussion on the limits of tree structures with respect to urban planning see A City is Not a Tree by Christopher Alexander (who is also the inspiration for the Design Patterns movement in software engineering). http://www.rudi.net/node/317
Re: In Lisp, should lists be replaced with trees?
#7Re: In Lisp, should lists be replaced with trees?
#8not directly lisp related, but the team working on Fortress has some interesting work on using "conc lists" (pairs, and trees as a combination of pairs) as a basic unit of work for parallel processing[1], the analysis quite naturally considers its relation with lisp ad cons lists in other languages. [1] http://labs.oracle.com/projects/plrg/Publications/ICFPAugust...
Re: In Lisp, should lists be replaced with trees?
#9"Branchs/trees are a superset of pairs/lists" No, they aren't. A tree is acyclic by definition. Cons cells allow circular structures.
Re: In Lisp, should lists be replaced with trees?
#10"Branchs/trees are a superset of pairs/lists" No, they aren't. A tree is acyclic by definition. Cons cells allow circular structures.
To take a familiar example, the Web is not a tree. While you might argue that each page has unique children (outlinks), there is no unique parent -- a page can have an arbitrarily large number of incoming links, and the page can link back to those pages in turn, producing cyclic structures of immense complexity. For some interesting discussion on the limits of tree structures with respect to urban planning see A City…