Giter Site home page Giter Site logo

angeld55 / data_structures_and_algorithms_fmi Goto Github PK

View Code? Open in Web Editor NEW
28.0 28.0 7.0 492 KB

Repository with examples for the " Data structures and algorithms" course given by me @ Faculty of Mathematics and Informatics, Sofia University

C++ 100.00%

data_structures_and_algorithms_fmi's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

data_structures_and_algorithms_fmi's Issues

Итератори:

Трябва да се реализира итератори за хешовете. Да работят, както тези в stl. Пример:

std::unordered_map<std::string, int> wordMap({{ "First", 1 },{ "Second", 2 },{ "Third", 3 }});
for (auto it = wordMap.begin(); it != wordMap.end(); it++)
{
    std::cout << element.first << " :: " << element.second << std::endl;
}

Фунцкия getPredecessors (сем. 11)

В графите ни е реализирана фунцкия getSuccessors, която връща всички наследници на даден връх.
Трябва да се реализира функция getPredecessors във 3-те реализации на нашите графи, която да връща всички предшественици на даден връх.

Функция adjacent (сем. 11)

Да се реализира в графите фунцкия adjacent , която приема начален и краен връх и връща дали съществува ребро между от началния към крайния връх. Функцията да се реализира във всички представяния.

Функция containsPath (сем. 11)

Трябва да се реализира фунцкия, която приема 2 върха и връща дали съществува път между тях.

Да се използват предложените реализации на BFS и DFS като по възможност да се модифицират, така че да се ползват от тази фунцкия (както и от други)

Resize фунцкия на linear probing hash

При запълване на 80 % от клетките, трябва да се направи оразмеряване и всички елементи да се хешират повторно.

Функция за проверка дали неориентиран граф е свързан (сем. 11)

Трябва да се реализира функция (във файла с алгоритмите), която проверява дали графът е свързан (има 1 свързана компонента)

Да се използват предложените реализации на BFS и DFS като по възможност да се модифицират, така че да се ползват от тази фунцкия (както и от други)

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.