gsampaio / mc548_1s2011 Goto Github PK
View Code? Open in Web Editor NEWImplementation of an heuristic for Set Cover derivate problem.
Implementation of an heuristic for Set Cover derivate problem.
Implementar função de inicializar lista de estações, basicamente vamos copiar as estações do Problem e ordenas por Score.
Sugestão de implementação:
Eina_List* init_station_avaiable_list(Eina_List* problem_stations);
Implementar função que a partir de um inteiro n retorna uma lista com os pontos de 1 até n.
Exemplo:
Eina_List * init_avaiable_point_list(int size);
init_avaiable_point_list(3)
(1, 2, 3)
A função station_random_get retorna sempre a mesma station.
STATION RANDOM GET TEST:
VALUE=8.2701729114, SCORE=0.0000000000
VALUE=8.2701729114, SCORE=0.0000000000
VALUE=8.2701729114, SCORE=0.0000000000
VALUE=8.2701729114, SCORE=0.0000000000
VALUE=8.2701729114, SCORE=0.0000000000
Implementar função com cabeçalho parecido com
Station * station_score_get(Eina_List* avaiable_points, Eina_List* avaiable_stations)
Onde pegamos o melhor station da lista de station disponíveis baseado no seu score.
Implementar função parecida com o cabeçalho abaixo:
void update(Solution *s, Eina_List * avaiable_points, Eina_List* avaiable_stations, Station *station);
Onde adicionamos o station a solução, removemos os pontos da station do avaiable points e removemos a station do avaiable_stations.
Implementar função que retorna a station com maior score de uma solution.
Possível header
Station* get_worst_station(Solution* s);
Separar Station, Station, Problem e Points em headers diferentes para abstrair o Eina.
Criar uma função que passando um Problem retorna uma solução randomica a partir das suas stations e dos seus pontos.
Adicionar tratamento de erro na função problem_init para quando tentamos abrir um arquivo inválido.
Implementar no arquivo heuristic.c uma função que retorna um estação de uma lista aleatoriamente a partir de uma lista de estações.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.