Coder Social home page Coder Social logo

guilhermecorreagv / maximum_words Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 2.49 MB

Repository from a small project to try to find the set of words in Portuguese that covers the maximum amount of characters without repeated ones.

C++ 93.20% Makefile 6.80%

maximum_words's Introduction

Maximum Words

The goal of this small project is to find the set of words in portuguese that cover the most amount of characters with no repetition.

There are two approaches:

  • Brute force backtrack: will try to find every possible subset covering the maximum amount of letters.
  • Perfect pangram: Will try directly to find a set of words that cover the 26 letters from the alphabet.

The implementations of these solutions are located in src/backtrack.cpp and src/prangram.cpp respectively.

The file data/wordsList contains a list of words in the portuguese language. The file should have this name and be located in the same path.

Please note that this file is not optimal since there are a lot of acronyms and some english words.

maximum_words's People

Contributors

guilhermecorreagv avatar

Watchers

 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.