You are to write Prolog that mimics the extract_list function.
extract_list([0.1.0],[a,b,c],X). Will bind X to [a,b,a]
extract_list([2,1,0],[a,b,c],X). Will bind X to [c,b,a]
You will need to read up on how to traverse a list in PROLOG. You may also want to test out PROLOG with example from the net on Grandfather rules, etc.
The Computer Science department provides racket Prolog. You will need to include “/local/sicstus/bin” in your path. The prolog interpreter is run as “sicstus”
You can create your prolog code in a file and read it in like the following example (the ending period is VERY VERY VERY important in PROLOG)
Where the filename is in the single quotes.
1) Your name and problem description
2) Your prolog code with proper, to the point documentation
3) A screen shot of the run of your code
Among other benefits, we guarantee:
Essays written from scratch – 100% original,
Competitive prices and excellent quality,
24/7 customer support,
Priority on customer’s privacy,
Unlimited free revisions upon request, and
Plagiarism free work.