Giter Site home page Giter Site logo

bogglealgorithm's Introduction

Boggle Algorithm

Description

Being explorative on difference ways of traversing boards and allowing for faster data tracing, I wanted to try my hand at the well known game 'Boggle'.

Though I'm not entirely sure of the actual games name/origin, the nature of the game is to find as many words as possible in a given list.

I decided to go through a step by step process into organizing/writing a program that would traverse the indices of the board to eventually find said words.

Currently the program is restricted to a given board and words, eventually I plan to implement customizable depth searching and evaluate the possibility of using the UNIX/Linux dictionary as a basis for the possible words.

Complexities

The space complexity by considering the board is O(n^2) while the space complexity of the list is quite astromical.

The time complexity can be measured by O(row * column * product(instructions^depth) * depth).

For the future, it's advised that a space complexity for the board being O(n + e) would be more optimal and the list to be evaluated after each iteration. Though this would increase the time, space wouldn't be as large as it currently is.

Dependencies

  • python3

Running

python3 -b/--board board.cnf -w/--words words.cnf

bogglealgorithm's People

Contributors

iamabszol avatar

Watchers

James Cloos 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.