Giter Club home page Giter Club logo

progetto-di-api-2022's Introduction

Progetto-di-API-2022

Progetto di Algoritmi e Strutture dati realizzato per il corso "PROVA FINALE (PROGETTO DI ALGORITMI E STRUTTURE DATI)" del Politecnico di Milano nell'anno accademico 2021/2022. Voto: 30 e lode.

Prestazioni

Tempo impiegato [s] Tempo massimo per passare il task [s] Memoria occupata [MB] Limite memoria per passare il task [MB]
UPTO18 0,669 0,8 5,72 18
UPTO21 10,006 25 77,2 130
UPTO24 10,383 25 77,2 130
UPTO27 10,431 25 45,5 130
UPTO30 9,136 25 37 130
CUMLAUDE 30,059 50 93,7 170

Strutture dati utilizzate

typedef struct _dict
	{
		int k;
		
		int size_array_max;
		int size_array_real;
		int size_dictionary_max;

		int cand_word;

		char * strings; //dizionario
		char * strings_v; //coda
	} dictionary;

L'applicativo necessitava di una struttura dati efficiente nell'inserimento, nella ricerca e nell'ordinamento. Ho deciso allora di memorizzare le stringhe che compongono il "dizionario" in due strutture dati, una tabella di hash "char * strings" gestita in closed hashing e un semplice arraylist "char * strings_v". Se viene richiesto un ordinamento, esso viene effettuato solo sugli elementi utili di "strings_v", mentre le operazioni di ricerca sono sempre eseguite su "strings".

Per ulteriori informazioni si consulti la documentazione all'interno del file sorgente "Bellani - Progetto di Algoritmi e Strutture dati 2021-2022 [07-09-2022].c"

progetto-di-api-2022's People

Contributors

imandreabellani avatar

Stargazers

 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.