Created
March 25, 2018 08:28
-
-
Save mehedi-shafi/8750141c89ee9e9ba8f2d63d4d80c8ad to your computer and use it in GitHub Desktop.
AI Lab 06 File
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AI LAB 06 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
member(X, [X|T]). | |
member(X, [H|T]):- | |
member(X, T). | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
findmin([], A, A). | |
findmin([H|T], M, Min):- | |
H < M, | |
findmin(T, H, Min). | |
findmin([H|T], M, Min):- | |
H >= M, | |
findmin(T, M, Min). | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment