Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword
Like this
2Activity
0 of .
Results for:
No results containing your search query
P. 1
Prolog[1]

Prolog[1]

Ratings: (0)|Views: 150 |Likes:
Published by amandeep651
practical file contents for prolog
practical file contents for prolog

More info:

Categories:Types, Reviews
Published by: amandeep651 on Oct 12, 2011
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as DOC, PDF, TXT or read online from Scribd
See more
See less

11/19/2012

pdf

text

original

 
 
TOPICS 
 
PAGE NO.
I.
Introduction 3-7
II.
Programs8-32
1.
Program to find the last element of a list 8
2.
Program to delete an element form a list. 93.Program to demonstrate the example of Green Cut. 11
4.
Program to calculate integer division.13
5.
Program to check the number of parents.14
6.
Program to add two numbers.157.Program to subtract one number from another number.16
8.
Program to multiply two numbers.179.Program to find the quotient of a number divided by another number.18
1
 
TOPICS 
 
PAGE NO.
10.
Program to check which number is greater.20
11.
Program to calculate the factorial of a number.22
12.
Program to find prime numbers up to 2023-24
13.
Program to generate Fibonacci number.25
14.
Program to calculate the area of a Triangle.29-30
15.
Program to display the head of a list.31
16.
Program to display the tail of a list32
 Prolog 
 
Prolog is a logic programming language. Prolog (PROgrammingLOGic) rose within the realm of Artificial Intelligence (AI). It is a general
2
 
 purpose language often associated with artificial intelligence andcomputational linguistics. It has a purely logical subset, called "pureProlog", as well as a number of extra logical features. It originally became popular with AI researchers, who know more about "what" and "how"intelligent behavior is achieved. The philosophy behind it deals with thelogical and declarative aspects. Prolog represents a fundamentally newapproach to computing and became a serious competitor to LISP
Significant Language Features
Prolog is a rich collection of data structures in the language and humanreasoning, and a powerful notation for encoding end-user applications. It hasits logical and declarative aspects, interpretive nature, compactness, andinherent modularity.
Intelligent Systems
- programs which perform useful tasks byutilizing artificaial intelligence techniques.
Expert Systems
- intelligent systems which reproduce decision-making at the level of a human expert.
Natural Language Systems
- which can analys and respond tostatements made in ordinary language as opposed to approvedkeywords or menu selections.
Relational Database Systems
Areas of Application
Prolog is the highest level general-purpose language widely usedtoday. It is taught with a strong declarative emphasis on thinking of thelogical relations between objects or entities relevant to a given problem,rather than on procedural steps necessary to solve it. The system decides theway to solve the problem, including the sequences of instructions that thecomputer must go through to solve it. It is easier to say what we want doneand leave it to the computer to do it for us. Since a major criterion in the
3

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->