How to install Prolog:
-
Download binaries from http://www.swi-prolog.org/Download.html and install it
-
Download editor (kind of prolog IDE) and install it http://arbeitsplattform.bildung.hessen.de/fach/informatik/swiprolog/setup.zip
How to execute:
-
open QuickSort.pl file in the editor;
-
write Consult('QuickSort.pl');
-
now you could call quicksort function. Examples:
- quicksort([1,2,4,3],Sorted).
- quicksort([5,2],X).