As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
What book would you recommend for a beginner in PROLOG? I currently know Perl.
I recommend Blackburn, Bos and Striegnitz, Learn Prolog Now. This was used in my academic course on Prolog. Full text is freely available online.
Prolog Programming for Artificial Intelligence
Its excellent :)
Clocksin, Mellish – Programming in Prolog
And some theoretical introductions into the foundation of prolog – Horn logic, DLP logic etc. if not yet present
The Art of Prolog by Leon Sterling and Ehud Shapiro.
I recommend Logic Programming in Prolog by Max Bramer. It helped me to learn prolog from scratch. You don't have to know any other programming languages or complex mathematical concepts.
Related
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 9 years ago.
I'd like to know what are the best sites to learn about formal languages, automata, algorithms and data structures. Preferable with many solved questions...
Thanks in advance
What I prefer is., a best book " On Theory of Automation", http://www.amazon.com/Introduction-Automata-Languages-Computation-Edition/dp/0321455363 .,
I have read this book., superb it is.
visit http://rosettacode.org/wiki/Rosetta_Code
You can compare also structure of programs on examples.
You didn't mentioned what kind of algorithms you want to learn. Anyway for basic algorithms and data structures TopCoder algorithm tutorial's page is a good place to start. Visit http://www.topcoder.com/tc?d1=tutorials&d2=alg_index&module=Static
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 9 years ago.
I have a some experience programming, and I want to understand grammar parsing, for both grammar in context and out of context. Where can I learn about grammar parsing? Are there any good books, sites, or forums you'd recommend?
Please note, I'm learning to program by myself, and have no formal training what so ever.
Compilers: Principles, Techniques, and Tools by Aho, Lam, Sethi, and Ullman, aka. "The Dragon Book" goes in great depth about constructing parsers for context-free grammars.
As for context-sensitive grammars, deciding whether a string belongs to the language specified by a given context-sensitive grammar is PSPACE-complete. In most cases what you'll do is parse the string according to a context-free grammar first, and then apply context-sensitive rules to the result. For example, the rule that in C variables must be declared before they are used is implemented as such a rule.
There are a few other approaches, useful for when the context-sensitive rules adhere to certain constraints (so called mildly context-sensitive grammars). See the Wikipedia article for more on these.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 9 years ago.
I need to do a project for class in Prolog but they gave us no guidance at all in the language it self. I was reading http://kti.mff.cuni.cz/~bartak/prolog/contents.html but I am not understanding anything of what I am reading.
Any better sources out there you can share?
Bratko's "Prolog Programming for AI" is excellent, clear, lively, accessible. Sterling and Shapiro's "The Art of Prolog" is very good too, very thorough with the basic/foundational stuff.
Bratko was the one were it "clicked" for me. I took this slogan from him (don't remember if he wrote it or if I distilled it from his book somehow) - in Prolog, to understand the question is to have your answer. Writing down the question properly gives you a runnable program, more or less. I remember reading a page on AVL trees where he wrote down the definition, and I turned the page expecting to see the "solution". But it was already about something else. Turning the page back I realized, that the statement of what AVL trees were, was already the program itself.
Many moons ago, I liked the book Programming in Prolog by William F. Clocksin & Christopher S. Mellish. It also helps to work through exercises and see how the language works. You can work through some problems from this site Werner Hett's P-99: Ninety-Nine Prolog Problems and here SWI Prolog is a good implementation to use.
I like Adventures in Prolog, but learning a logic language on your own can be very hard. You really can learn much faster and more correctly with a mentor or taking a college course.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 11 years ago.
hi I am currently a PHP developer . I haven't done any thing in artificial intelligence but I like to start artificial intelligence programming . I know there a are languages like LISP , PRO-LOG .
how do I get started ??
can you suggest me some E books .
some study guide lines .
what are the IDE s that I can use .
please help . thanks ............
Not ebooks, but real books for learning the basics of Prolog and classic IA:
"Prolog Programming for Artificial Intelligence" by Ivan Bratko
"The Art of Prolog" by Leon Sterling
Regarding IDE's, SWI-Prolog is probably the most friendly free Prolog system with integrated graphical editor, profiler and debugger. Though, Emacs and vi are probably what most Prolog programmers use for editing Prolog programs.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 12 years ago.
The programming language or The programming logic.....
Because both are equally important for good coding practice. And, please justify your answer.
What makes a program to be a good program?
Being able to address the customer needs and make him happy.
Programming language, programming logic, code style etc. are nonessential to the success.
The programming language doesn't have squat to do with a good program, you can write ugly code in C++ and elegant code in LOLcode and if they perform the same function nobody will care. Most important is that the code is bug free and performs its function.