Prolog Essay

754 words - 3 pages

What is prolog?
Prolog is a descriptive language because a program describes the problem rather than the steps taken to solve the problem. This allows the program to concentrate on the problem rather than the machine’s solution to the problem. The description of a problem also describes the procedures for solving the problem. Prolog is also a procedural language, when you describe the relationship between objects, you can also define an executable procedure.
The logical aspect of the language makes it possible to describe a program most simply, the procedural side of prolog makes it possible to write practical applications.
        
        

Characteristics of logic programming:
Like predicate calculus, prolog defines a way to make logical assertions and to prove theorems based on those assertions. In prolog problems are described in terms of “Facts” and “Rules”, where facts are statements that are simply true and analogous to logical assertions; Rules are similar to theorem proofs.
In prolog facts are accessed and rules are set into action by asking questions.
Prolog facts are expressed as clauses and a collection of related clauses is called a predicate, a predicate provides a consistent way of grouping similar facts. Clauses are stored in the database in the same order in which you enter them and it will retrieve this clauses in the same order, therefore the ordering of clauses in the database is as significant as the facts themselves. This order can ensure that your program executes properly.
Note that prolog contains a database very similar to a relational database, this database is where facts and rules are stored, the above description of organized facts storage is one similarity, also the database is composed of rows called instances in where facts are stored, each row contains an individual fact, an instance consists of one or more columns, called attributes, all instances in the same relation(table) have the same number of attributes each related clause has the same number of arguments, and like the columns of a table related arguments in each clause hold the same type of information.
        
        
        
        
        

My implementation in comparison with an implementation in a procedural(functional or imperative) language:
In any of the above mentioned conventional...

Find Another Essay On Prolog

A Cognitive Model of New Data on Human Problem Solving

2211 words - 9 pages base summarizing expert knowledge for this domain. While working on the task analysis we would also work on prototyping one of the examples. During prototyping we will provide Cascade with the knowledge to solve one of the problems so we can work out the kinks in our knowledge representation. After task analysis is complete we move on to the Prolog translation. This is the part of the project where I actually work with computers. Here I

Programming the Game of Go with Artificial Intelligence (AI)

2140 words - 9 pages creatures as well as humans and to look at intelligence in humans in terms of the broad spread of individuals that form humanity as a whole and not simply an ‘ideal’”. An early implementation of artificial intelligence was the idea of “expert systems”. The idea here was to capture the knowledge of an expert/s in a particular field e.g. a group of doctors, and attempt reproduce that knowledge by developing a set of rules. The Prolog programming

Evolution of Programming Languages - PowerPoint Presentation

959 words - 4 pages designed to build specific programs, fifth-generation languages are designed to make the computer solve the problem for you. Fifth-generation languages are used mainly in artificial intelligence research. Prolog, OPS5, and Mercury are the best known fifth-generation languages.Another group looks at 5GL as programming that uses a visual or graphical development interface to create source language that is usually compiled with a 3GL or 4GL language

Testing tools

1879 words - 8 pages languages enable a software engineer to write detailed test specifications that describe each test case and the logistics for its execution. An example of one of these languages is Prolog, that is specifically used for test case generation.Requirements based testing tools isolate specific user requirements and suggest test cases (or classes of tests) that will exercise the requirements.Dynamic measurement Tools that analyse source code during execution

Sovereignty, Supremacy, and Dominance in The Wife of Bath

1296 words - 5 pages first issue of sovereignty when the Wife of Bath is telling us about herself in her prolog. She mentions that three of her husbands were good because they were old and rich. She then tells us how she controlled each one. The last two were not as easy as the first three, but they too eventually handed all authority to her, they were just a bit of a challenge. When we read the Wife’s tale we see a woman much like herself in the hag. The hag is by all

Should Physician Assisted Suicide Be Legalized?

1212 words - 5 pages dying process.Therefore, the possibility that medical might someday treat patients is a great alternative for healing rather than using unethical procedure to prevent patients from suffering. New treatments which help people recover from incorrect prognosis are still being researched. Since research is ongoing it is important that we should not give up on the possibility for the introduction of a new treatment that have the potential to prolog

A Notion of Laws Book Review

1069 words - 5 pages simplification in American history, Hoffer as well see advance, yet asperous advance, from recognized grandiosity to adequacy and from point of interest for a couple to address for every one of the" (163). The prolog starts with the undertaking of hard manual work and race; since engages "the law" may amount such praiseworthy good abysses all around American history, the motivation behind dissection is not investigating whether we tend to settle for

Amazon and eBay : The New Face of Web Services

1650 words - 7 pages Prolog. 2. What are the benefits of Web services to Amazon, eBay, and their develop partners? Exposing the existing function on to network The benefits of using web services to Amazon, eBay, and they reveal the function of a developer in the network because it is a unit of code that can be remotely managed using HTTP. Therefore, it can be activated using HTTP requests. When it is exposed to the network, other applications can use

Various Types of Database Models

1558 words - 7 pages database and declarative property is one these properties. Declarative property is about querying or updating the information according to the requirement without knowing anything about operation. There are two important variations in the deductive database system and these are as follows • Expert database system • Knowledge based database system In the pure deductive system data might be present in the both primary and secondary sections of the memory but in both of the above types data should be present in the primary section. Programming languages which is used to implement deductive system are known as Prolog and Data log.

What is Artificial Intelligence?

2599 words - 10 pages which the expert system was designed for. A hammer is a tool to aid a carpenter to bang a nail into a piece of wood. The hammer needs the carpenter as much as the carpenter needs the hammer. Someone who has never used a hammer before may have problems trying to use it.In 1972 an AI language called PROLOG was developed in France. The language was designed to understand words rather than complex code. It proved so popular it is still widely used today

Expert Systems- this has the word format of the assignment attached and includes diagrams

2954 words - 12 pages of factual and heuristic knowledge. An ES tool provides one or more knowledge representation schemes for expressing knowledge about the application domain. Some tools use both frames (objects) and IF-THEN rules. In PROLOG the knowledge is represented as logical statements.Reasoning engine: Inference mechanisms for manipulating the symbolic information and knowledge in the knowledge base to form a line of reasoning in solving a problem.Knowledge

Similar Essays

N Puzzle Problem In Java, Lisp & Prolog

4367 words - 17 pages been implemented in three different kinds of programming languages which are the Object-oriented, functional and logic programming languages. Java(JDK1.3.1), Lisp(Corman Lisp 2.0) and Prolog(SWI-Prolog version 5.0.9) are the versions of each of the chosen languages. A brief introduction of each programming language is given. The structure of this paper is as follows. A short introduction for each of the chosen programming language. Then an

Compiler Essay

4117 words - 16 pages -- implementation of Lisp that used to be known as Kyoto Common Lisp. Graphic Lisp -- portable Common Lisp language written in ANSI-C. iLisp -- a small, multiplatform implementation of Lisp language. Linux Poplog -- developing CLisp, Prolog, Pop-11 and standard ML. LISP DEBUG -- source level debugger with GUI for LISP program. Screamer -- an extension of Common Lisp with nondeterministic programming. Simple Lisp -- a simple lisp interpreter

Career Of A Computer Programmer Essay

593 words - 2 pages language such as COBOL, Prolog, Java, C++, and Smalltalk depending on the purpose of the program. COBOL is used for business applications when C++ is used for scientific and business programs. Most programmers know more than one language and because most of the languages do not have that many differences between them they are not terribly hard for the programmer to learn. After the Program is finished they use a process of testing and debugging

Medical Diagnostic Expert System Essay

1244 words - 5 pages is the modus ponens. The reasoning technique that is used in this project is the backward chaining that is supported by the programming language that will be used, which is prolog. It is also known as goal-driven reasoning. MANAGING UNCERTAINTY Diagnosing illness in itself is difficult; to develop a computer software to do is a tedious task that requires an in-depth knowledge in expert systems. Uncertainty is inevitable and to cater for it a fewer