Skip to content

monikavarga/RPS_algorithm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project Title

Implementation of Reevaluable Possibility Space algorithm in Prolog

Table of Contents

Prerequisits:

Before compiling and running the application, ensure that you have the following prerequisites installed: The stable version of Prolog Compiler (e.g., SWI-Prolog, https://www.swi-prolog.org)

Installation:

  1. Clone the repository:
 git clone https://github.com/monikavarga/RPS_algorithm.git
  1. Change into the project directory:
cd YOUR ACTUAL DIRECTORY
  1. Setting environment for using SVI Prolog:
sviprologvars.bat
  1. Compilation of the executable:
swipl.exe -o RPS_algorithm.exe --foreign=save --autoload=true --stand_alone=true -c RPS_algorithm.pl 

Usage

Task.pl contains pre-configured run options for 'reevaluation' and 'propose' of solutions.

The content of task() predicate is as follows: % task(Program,From1,From2,To,Input_parameters). % Program = the algorithm to be executed % From1,From2 = the names of input files within '' % To = the name of output file within '' % Log = the name of the respective log file within '' % Input_parameters = the list of algorithm dependent input data within [] %Actually we use parameters only for the "propose" algorithm, as follows: % Input parameters = [Actual_rmax_number,Suggested_new rmax_number,Selected_strategy]

To use the predefined task() predicates, remove % from the beginning of the row to be actually used by the algorithm. The row can be edited, following the above syntactical rules.

Running of a task requires the rmax and rmin input files (defined in the task() predicate) in the root of main directory. Pre-configured rmax and rmin files can be found in and copied from the folders Rmax and Rmin.

To run the project, use the following command:

RPS_algorithm

Result is prepared with the predefined name, according to the task() predicate.

License

This project is licensed under the MIT License.

Contact

For any questions or suggestions, feel free to reach out via GitHub issues.

About

This is the Prolog-based implementation of the RPS algorithm

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages