Welcome -
Guest!
Login
/
Register Now
|
Search:
Home
Articles
Forum
Interview FAQ
Activities
News
Videos
Poll
Links
People
Groups
Artificial Intelligence Articles
Submit Article
Home
»
Articles
»
Artificial Intelligence
»
ProLog
RSS Feeds
Prolog Program to find Maximum of X and Y using Cut Predicate
Posted By:
Shaunak Patel
Category:
Artificial Intelligence
Views:
9860
predicates
go.
max(integer,integer,integer).
clauses
go:-
readint(X), readint(Y),
max(X,Y,_).
max(X,Y,X):- X>Y ,!.
max(X,Y,Y).
Goal: max(22,33,X)
X=33
1 Solution
Share:
Previous Post:
Perceptron in Neural Networks
Next Post:
Prolog program to rotate a list n places to the left
Didn't find what you were looking for? Find more on
Prolog Program to find Maximum of X and Y using Cut Predicate
Or get
search suggestion and latest updates
.
Shaunak Patel
author of Prolog Program to find Maximum of X and Y using Cut Predicate is from
India
.
View All Articles
Related Articles and Code:
Prolog program to find maximum number from a list
ProLog Program to find maximum number from inputted numbers
Program to find the maximum and minimum element in an array using threads
Program to find minimum and maximum from an array using structure
Find maximum and minimum of an array using Loop Splitting
Program of finding Maximum and minimum of an array using Loop Splitting
Program to find the maximum and minimum element in an array using threads
An applet program to find maximum of three numbers using textField
Program to find minimum and maximum number from user specified 3 numbers
Program to show find the maximum depth of a Binary Search Tree
Give example of cut command?
List of 221 MS Word Short Cut Keys
ProLog Program to read 10 integers in a list and 10 from the database and find 2nd maximum of all of them
Prolog program of predicate ordered (List) which is true if List is an ordered list of numbers
Prolog program to define two predicates evenlength(List) and oddlength(List) so that they are true if their argument is a list of even or odd length
Prolog program that defines a predicate maxlist (L,Max) where Max is the greatest number of the list
Predicate logic representation and then converting them to prolog, prove the proof.
Prolog program to find last item of the list
PROLOG PROGRAM TO FIND THE PERMUTATION OF THE GIVEN LIST
PROLOG PROGRAM TO FIND SUBLISTS OF THE GIVEN LIST
Other Interesting Articles in Artificial Intelligence:
ProLog Program of Bubble Sort
Prolog program to generate a fibonacci series of N elements
Prolog program to read file and create list of all the lines of it. Each list in turn should be list of word.
prolog program to read 10 strings into a list and display similar characters
ProLog Program to buy and sale cars
Prolog program to read two strings and then output the third string which is a concatanation of the both excluding reapiting characters
Prolog program that defines a relation count(A,L,N) that counts into N the number of occurrences of the element A in the list L
Perceptron in Neural Networks
Design a game based on 5*5 matrix and two players moving in spiral way to the center given the dice value
Prolog program to read 10 string and store them in database and then write the string in increasing order of their length to other database
Prolog program to read and write file
Prolog program of Fibonacci Series
ProLog Program of Game EX
Prolog program to read 10 string and store them in database and then write the string in increasing order of their length to other database
Prolog program to reverse a list using concatenate
Prolog program to define the relation translate(L1,L2) to translate a list of numbers 0-9 to a list of corresponding words i.e. 0 - zero 1 - one
Prolog program to check whether a number is a member of given list or not
Prolog program to delete an element from a given list
Artificial Intelligence sessional paper of year 2002
ProLog Program to add and multiply numbers
Please enter your Comment
*
*
Comment should be atleast 30 Characters.
Please put code inside [Code] your code [/Code].
Please login to post comment
No Comment Found, Be the First to post comment!
Artificial Intelligence
View All
Material
ProLog
Assembly Language
C Programming
C++ Programming
Visual C++
OOAD
Cobol
Java
SQL Server
Asp.net MVC
Rest and WCF Services
Entity Framework
Knockout.Js
Unix / Linux / Ubuntu
Networking
OOPs Concept
HTML
Dos
SQL
System Analysis & Design
Gadgets
Internet
CSS
Javascript
.Net Framework
Asp.net
C#
VB.Net
Python
Perl
Oracle
Software Engineering
RDBMS Terms
AJAX Framework
Design Pattern
UML
WPF
WCF
SEO
PowerShell
Visual Studio
WWF
BizTalk Server
Azure
General
Testing
Online Certifications
PHP
My SQL
LinQ
Project Management
Silverlight
XML
MS Office
Windows OS
DHTML
Sharepoint