Re: Revenge is a dish best served cold (arrays and 8 queens)



<<It remains to be seen which problem cannot be solved in Prolog
without
this specific data structure out the cases of interfacing to other
languages or accessing certain API, for example.>>

From what I have seen, there are few problems that absolutely require
particular data structures (hashes, trees, arrays, queues, stacks,
heaps, whatever) in order to be solved. Most (if not all) problems
can be solved with any "basic" data structure, whether an array, list,
or whatever.

So for me, the question is not "whether it remains to be seen which
problems cannot be solved in Prolog without data strucrure X." It is
a matter of having a variety of data structures to choose from in
approaching a problem. Other languages can get by with only a single
data structure as well - a list for example. But they choose to
provide more. Why?

Your car, for that matter, provides many gears in its transmission.
Why? It remains to be seen which car driving problem cannot be solved
by 1 single gear - "first gear." Yet there are usually more provided.

Just my 2 cents.

.



Relevant Pages

  • Re: Revenge is a dish best served cold (arrays and 8 queens)
    ... can be solved with any "basic" data structure, whether an array, list, ... Other languages can get by with only a single ... engine whose torque rotation curve is not a good match for the load accounting to hills so a solution was devised which matches the regimen of engine for the requirements of the car's trip. ... It is a necessity for pratical use of car with internal combustion engines. ...
    (comp.lang.prolog)
  • Re: Sentence Structure in Other Languages
    ... > modifies rather than before it as in English. ... > sentence structures from other languages? ... I don't see how a data structure there can be better than another ... I expect (I don't see the day of a general algorithm ...
    (sci.lang)
  • Re: A modern way to solve the "callback problem" from a subroutine?
    ... programming practices in other languages that prompted their addition. ... they are part of the list processing facility. ... data structure and then work with the different parts ...
    (comp.lang.fortran)
  • Re: What to do with (time (length L)) proportional to (length L)
    ... >>> Hmmmm, what data structure are you thinking of that is commonly ... >>> provided by other languages that is missing from Lisp? ...
    (comp.lang.lisp)
  • Re: Revenge is a dish best served cold (arrays and 8 queens)
    ... Prolog) was that the 'fixation' to an array like structure to solve ... list is not the only data structure available in Prolog, ... you still failed to explain how arrays are so indispensable ... explain how lists are so indispensable to everything under the sun. ...
    (comp.lang.prolog)