Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Special pages
Niidae Wiki
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Procedural programming
(section)
Page
Discussion
English
Read
Edit
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
View history
General
What links here
Related changes
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== Logic programming === In [[logic programming]], a program is a set of premises, and computation is performed by attempting to prove candidate theorems. From this point of view, logic programs are [[Declarative programming|declarative]], focusing on what the problem is, rather than on how to solve it. However, the [[backward reasoning]] technique, implemented by [[SLD resolution]], used to solve problems in logic programming languages such as [[Prolog]], treats programs as goal-reduction procedures. Thus clauses of the form: :{{mono|1=H :- B<sub>1</sub>, β¦, B<sub>n</sub>.}} have a dual interpretation, both as procedures :to show/solve {{mono|1=H}}, show/solve {{mono|1=B<sub>1</sub>}} and β¦ and {{mono|1=B<sub>n</sub>}} and as logical implications: :{{mono|1=B<sub>1</sub> and β¦ and B<sub>n</sub> implies H}}. A skilled logic programmer uses the procedural interpretation to write programs that are effective and efficient, and uses the declarative interpretation to help ensure that programs are correct.
Summary:
Please note that all contributions to Niidae Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Encyclopedia:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Search
Search
Editing
Procedural programming
(section)
Add topic