Giter Club home page Giter Club logo

ocaml_projects's Introduction

Please keep in mind that this project is from fall 2017.

Ocaml projects

This repository contains the solutions to the programming assignments for the Fall 2017 Introduction to Programming course at the University of Warsaw.

The specification and comments is written in Polish. Here you can find brief descriptions of those projects

1: Calculator for physicists

This project implements floating-point arithmetics for values with an error allowance. Say, we measure speed as 5 km/h +- 0.1km/h. We would like to see how this uncertainty of measurement affects other variables.

The solution treats these values as an interval of possible values and allows to perform addition, subtraction, multiplication and division of these values. It supports non-numeric types, like NaN, +-infinity and operations including 0.

2: Leftist tree

This project implements leftist trees.

3: Tree modifications

This project is a modification of a polymorphic set implementation to store integer numbers as intervals.

4: Origami

An origami simulator, allowing to check at how many points the original card is pierced.

5: Topological sort

Sorts a directed acyclic graph.

6: Pouring water

There are n glasses of water, each with capacity x1, x2, ..., xn. Initially all glasses are empty. In each move you can either:

  • Fill the glass to the top, or
  • Remove all water from a selected glass, or
  • Pour water from one glass to another. The program uses the backtrack algorithm to determine the minimum number of moves (or output -1, if impossible) to reach the state (y1, y2, ..., yn) for given y1, ..., yn.

ocaml_projects's People

Contributors

fbudrowski avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.