Implement a two-dimensional table in prolog, Programming Languages

Implement a two-dimensional table in Prolog. Your program will contain:

1.  An insert_entry predicate that takes a table, row, column and an entry and inserts the entry at the given position creating a new table

2.  A search_entry predicate that takes a table, row and column and unifies its fourth argument with the entry at the indicated position of the table

3.  Write code that creates a table and populates it with at least 2 rows and 2 columns

 

Posted Date: 3/28/2013 3:54:39 AM | Location : United States







Related Discussions:- Implement a two-dimensional table in prolog, Assignment Help, Ask Question on Implement a two-dimensional table in prolog, Get Answer, Expert's Help, Implement a two-dimensional table in prolog Discussions

Write discussion on Implement a two-dimensional table in prolog
Your posts are moderated
Related Questions
What are the main pros and cons of assembly programming language?

want to do an image-mean. but image is and mean is so an error showing Error using ==> minus Number of array dimensions must match for binary array op. wat to do?

how to get the HORIZONTAL motion field from motion vectors matrices

Write your own version of the strcmp function string_compare. Supply a main program that will test each of the 3 differing outcomes. int string_compare(char *s, char *t); retu

Question: (i) What is multithreaded programming? Lists the benefits achieved by multithreading your code in a program. (ii) What type of coding should be eliminated when d

i attached the assignment document only i need your help with following three parts: accessible areas, accessible cul-de-sacs that are all connected, entry-exit path with no in

1. use a small perl program and matching config file to retrieve and reformat the system time for a number of remote machines via snmp.  Readings should have a local timestamp for

There actually isn't all that much to this section. All we are going to do now is work a quick illustration using Laplace transforms for a 3 rd order differential equation therefo

Short Arrays: Array = randi(10,1,randi(6,1,1)+4)-5 This command will generate an array which you should be able to evaluate by hand (and also have your code evaluate for te

You are required to develop a content management system for the following scenario:   "A Travel Information (NTIK) system is to be designed to allow travellers to access to an elec