Coder Social home page Coder Social logo

algorithms-and-programming's Introduction

Solutions to Algorithms and Programming problems

This repository contains solutions to the problems posed in the lectures and laboratories of the Algorithms and Programming course held by Stefano Quer at PoliTO for the academic year 2020/2021.

This code is intended to be part of the public domain and can be used by anyone in any form without any obligation.

These are my personal solutions to the problems. I do NOT guarantee on the correctness, efficiency or quality of this code. If you fail your exam because you looked at my code, it's entirely YOUR fault.

The text of the problems are provided by prof. Stefano Quer and are not affiliated with me in any way. The solutions are (unless otherwise specified) created by me and are mostly original work, although they can and probably will contain inspiration or snippets from lectures, slides, laboratories, corrections et al.

VS Code support

VS Code support is included in the repo (since it's the editor I use). The default build task (CTRL + SHIFT + B with default keybinds) will build all the applications, whereas the default debug configuration (F5 with default keybinds) will rebuild the current file only and debug it with gdb.

Building the project

A makefile is provided to build all the projects at once. The makefile, as well as the entire project, is only designed to support UNIX-Like operating systems that have the GNU utilities (or equivalent) installed alongside GCC. No plan to support any other platform or compiler. Of course each project can be built manually.

License

Do whatever you want with this code. Read it, copy it, modify it, sell it, burn it in a sacrificial ritual. The only thing you must keep in mind is that whatever you do with this it's your responsibility and I am not to be held liable.

Special thanks

Thanks to PoliTO, and in particular Prof. Quer and his teaching assistants for teaching me and providing me with exercises.

algorithms-and-programming's People

Contributors

alecello avatar

Watchers

 avatar

algorithms-and-programming's Issues

Finish to write and test the new build system

Should have following features:

  • Support multi-file projects: each directory containing C sources is treated as a project and all the included C files are part of it
  • Automatically link libraries when needed: Right now I link libm.so for all projects. This is bad
  • Add inclusion path for own libraries (and own libraries automatic link)

Introduce dependency checking in build system

Right now the only ordering that is done at build time is to build libraries before programs. However if a library depends on another library and the order happens to be wrong, the build will fail with the current system. Also if we build one program that depends on other libraries and we didn't build the libraries before, the build will fail.

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.