Giter VIP home page Giter VIP logo

happy_wedding's Introduction

happy_wedding

Prepare your wedding at best by sitting your guests in the best possible way (based on their relationships and/or interactions).

Usage

  1. Clone repo

    git clone https://github.com/J4NN0/happy_wedding.git
    cd happy_wedding
    
  2. Make sure banquet.txt file exists and populate it accordingly

    1. First line of the file must contain respectively the values N (Number of guests), K (Number of tables) and M (Tables seats).

    2. The other lines form a symmetric matrix with all zeros in the diagonal (the diagonal of the matrix is zero because the person has no interaction with themselves). The value of each position indicates the interactions of the people with each other. For instance:

              Trump Putin Renzi
        Trump   0    -2     3
        Putin  -2     0     1
        Renzi   3     1     0
      
    3. Names have to not be placed inside the file. Each person is identified by a number which is his position within the file. In the example above, Trump is identified by ID 0, Putin 1 and Renzi 2.

  3. The values of the interactions between people should be go from a minimum of -5 to a maximum of 5.

  4. An example of a file coudl be the following - 6 (5+1) the number of guets, 2 the number of tables and 3 tables seats (for each table):

       6 2 3
       0 5 3 -2 1 1
       5 0 2 4 3 4
       3 2 0 1 5 -4
       -2 4 1 0 3 3
       1 3 5 3 0 2
       1 4 -4 3 2 0
    
  5. Make and run the program: the algorithm, through a recursive function, will calculate the average mood of the room and will give you each person's seating.

  6. So, what are you waiting for? Sit down your guests appropriately!

happy_wedding's People

Contributors

j4nn0 avatar

Stargazers

 avatar

Watchers

 avatar  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.