Code Monkey home page Code Monkey logo

flp2's Introduction

FLP: Hamiltonian cycle

Author: Milan Tichavský (xticha09)

Design

The program picks the first point from the input file, which it uses as a starting point. Then, it performs depth-first search with backtracking to find all possible Hamiltonian cycles. All found cycles are at first sorted and compared with already found paths, so that no duplicate cycle is added. If the given path wasn't found yet, this path is added to the dynamic predicate paths.

Usage

To build and run the program using input from fully_3.in, run

make build
./flp23-log < test-cases/fully_3.in

To launch testing script, execute

make test # execution is pretty much instant

flp2's People

Contributors

tichavskym avatar

Watchers

 avatar

flp2's Issues

Submit the project

  • test on merlin
  • last line of input/output can contain newline
  • code documentation according to 4rd labs
  • Check it works for unsorted input
  • produce flp-log-xticha09.zip
  • add readme according to assignment
  • include testing inputs and document in readme how long it takes to execute
  • check test cases once again (test including matrix9
  • create a separate dir for test cases
unzip flp-log-xlogin00.zip
make
./flp23-log < /cesta_k_testum/vstup1.txt > /cesta_k_vysledkum/vystup1.txt

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.