Skip to content

pspanoudakis/Logic-Programming

Repository files navigation

Logic Programming using Prolog

This is a series of exercises for the Spring 2021 Logic Programming course in DIT@UoA.

All exercises are implemented in ECLiPSe-CLP Prolog.

Group A

The exercises of this group are implemented using the standard ECLiPSe-CLP Prolog predicates.

  1. MatrixDiagonals: Finding the ascending & descending diagonals of a 2-D Matrix.
  2. HopfieldNetworkTraining: Computing the edge weights of a Hopfield Network.
  3. GamesPleasure: Solving a maximization CSP, solved using standard predicates.

Group B

The exercises of this group are all CSP-based problems, and are solved using the ic, ic_global and branch_and_bound libraries provided by ECLiPSe-CLP.

  1. ImageDecode: Decoding and printing an encoded black and white image, using the constraints regarding the number of black pixels in each row, column and diagonal.
  2. GamesPleasureCSP: Solving the Exercise 3 of Group A, this time using the ic and branch_and_bound libraries.
  3. FlightSelection: Finding the optimal flight schedule for an airline.
  4. HCVRP: Solving instances of the Heterogenous Capacitated Vehicle Routing Problem.

About

CSP and other problem solutions in ECLiPSe-CLP Prolog

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages