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:
9199
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 to check whether a given list is palindrome or not
ProLog Program to find relations in family
Prolog program to generate first 10 prime numbers and store them in a list
ProLog Program to find grade
Prolog program to check whether a list is an ordered list or not
Neural Networks
PROLOG PROGRAM OF MISSIONARY CANNIBAL PROBLEM
Artificial Intelligence and Expert Systems university paper - 2 of year 1997
Prolog Multi-List Program
Prolog program to add an element to the begining of a list
Prolog program to find sum of all the numbers in a given list
Prolog problem to add two numbers
Prolog program to define the relation last(item,list) so that item is the last element of the list without the use of concatenate
Prolog program of predicate ordered (List) which is true if List is an ordered list of numbers
ProLog Program to generate facts of the family and take different relations
Artificial Intelligence sessional paper - 2 of year 2002
Prolog program Define the relation last(item,list) so that item is the last element of the list using concatenate
Artificial Intelligence sessional paper of year 2002
Program that defines a relation split(L,P,N) where list is divided into positive, negative numbers without using cut
ProLog Program to read 10 integers in a list and 10 from the database and find 2nd maximum of all of them
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