• Home
  • Chat IA
  • Guru IA
  • Tutores
  • Central de ajuda
Home
Chat IA
Guru IA
Tutores

·

Ciência da Computação ·

Introdução à Lógica e Programação

Envie sua pergunta para a IA e receba a resposta na hora

Recomendado para você

Introdução às Linguagens de Programação Estruturada

31

Introdução às Linguagens de Programação Estruturada

Introdução à Lógica e Programação

UAM

Ordenação Externa e Intercalação de Arquivos

28

Ordenação Externa e Intercalação de Arquivos

Introdução à Lógica e Programação

UAM

Técnicas de Programação: Funções - Unidade 2

31

Técnicas de Programação: Funções - Unidade 2

Introdução à Lógica e Programação

UAM

Técnicas de Programação - Unidade 4: Arquivos

37

Técnicas de Programação - Unidade 4: Arquivos

Introdução à Lógica e Programação

UAM

Pesquisa sobre Ordenação Interna e Algoritmos de Armazenamento

34

Pesquisa sobre Ordenação Interna e Algoritmos de Armazenamento

Introdução à Lógica e Programação

UAM

Sistema-de-Cadastro-CRUD-em-Java-com-MySQL-e-Swing

1

Sistema-de-Cadastro-CRUD-em-Java-com-MySQL-e-Swing

Introdução à Lógica e Programação

UAM

Pesquisa Ordenação e Técnicas de Armazenamento: Técnicas de Pesquisa Sequencial e Binária

30

Pesquisa Ordenação e Técnicas de Armazenamento: Técnicas de Pesquisa Sequencial e Binária

Introdução à Lógica e Programação

UAM

Matrizes e Sistemas Lineares em Circuitos Elétricos

1

Matrizes e Sistemas Lineares em Circuitos Elétricos

Introdução à Lógica e Programação

UAM

Introdução às Funções em Programação C

21

Introdução às Funções em Programação C

Introdução à Lógica e Programação

UFAL

Prova ATC - Linguagem uwu e Autômato de Pilha - 01-11-2023

1

Prova ATC - Linguagem uwu e Autômato de Pilha - 01-11-2023

Introdução à Lógica e Programação

UMG

Texto de pré-visualização

Discrete Optimization Assignment Traveling Salesman Problem 1 Problem Statement In this assignment you will design an algorithm to solve a fundamental problem faced by every traveling salesperson aptly named The Traveling Salesman Problem TSP All traveling salespeople start from their home travel to several cities to sell their goods and complete the day by returning home To minimize their costs traveling salespeople strive to visit all of the cities using the shortest total travel distance This amounts to finding a visitation order of all of the cities that minimizes the sum of distances traveled when moving from one city to another Figure 1 illustrates a small TSP and a feasible solution to that problem The cities are labeled from 04 4 Instructions Edit solverpy and modify the solve itinput data function to solve the optimization problem described above The function argument input data contains the problem data in the format described above The return value of solve it is a solution to the problem in the output format described above Your solve it implementation can be tested with the command python solverpy datainputFileName You should limit the solve it method to terminate within 5 hours otherwise the submission will not be eligible for full credit You may choose to implement your solver directly in python or modify the solve it function to call an external application Resources You will find several traveling salesman problem instances in the data directory pro vided with the handout Handin Run submitpy with the command python submitpy Follow the instructions to apply your solve it method on the various assignment parts You can submit multiple times and your grade will be the best of all submissions However it may take several minutes before your assignment is graded please be patient You can track the status of your submission on the feedback section of the assignment website Grading Infeasible solutions ie those that do not conform to the output format or violate problem constraints will receive 0 points Feasible solutions will receive at least 3 points Feasible solutions passing a low quality bar will receive at least 7 points and solutions meeting a high quality bar will receive all 10 points The grading feedback indicates how much your solution must improve to receive a higher grade Collaboration Rules In all assignments we encourage collaboration and the exchange of ideas on the discussion forums However please refrain from the following 1 Posting code or pseudocode related to the assignments 2 Using code which is not your own 3 Posting or sharing problem solutions Discussion of solution quality ie objective value and algorithm performance ie run time is allowed and the assignment leader board is designed to encourage such discussions Warnings 1 It is recommended you do not modify the data directory Modifying the files in the data directory risks making your assignment submissions incorrect 2 You cannot rename the solverpy file or the solve it method 3 Be careful when using global variables in your implementation The solve it method will be run repeatedly and it is your job to clear the global data between runs 4 solverpy must remain in the same directory as submitpy 3 5 Technical Requirements You will need to have python 279 or 35 at least installed on your system installation instruc tions httpwwwpythonorgdownloads 4

Envie sua pergunta para a IA e receba a resposta na hora

Recomendado para você

Introdução às Linguagens de Programação Estruturada

31

Introdução às Linguagens de Programação Estruturada

Introdução à Lógica e Programação

UAM

Ordenação Externa e Intercalação de Arquivos

28

Ordenação Externa e Intercalação de Arquivos

Introdução à Lógica e Programação

UAM

Técnicas de Programação: Funções - Unidade 2

31

Técnicas de Programação: Funções - Unidade 2

Introdução à Lógica e Programação

UAM

Técnicas de Programação - Unidade 4: Arquivos

37

Técnicas de Programação - Unidade 4: Arquivos

Introdução à Lógica e Programação

UAM

Pesquisa sobre Ordenação Interna e Algoritmos de Armazenamento

34

Pesquisa sobre Ordenação Interna e Algoritmos de Armazenamento

Introdução à Lógica e Programação

UAM

Sistema-de-Cadastro-CRUD-em-Java-com-MySQL-e-Swing

1

Sistema-de-Cadastro-CRUD-em-Java-com-MySQL-e-Swing

Introdução à Lógica e Programação

UAM

Pesquisa Ordenação e Técnicas de Armazenamento: Técnicas de Pesquisa Sequencial e Binária

30

Pesquisa Ordenação e Técnicas de Armazenamento: Técnicas de Pesquisa Sequencial e Binária

Introdução à Lógica e Programação

UAM

Matrizes e Sistemas Lineares em Circuitos Elétricos

1

Matrizes e Sistemas Lineares em Circuitos Elétricos

Introdução à Lógica e Programação

UAM

Introdução às Funções em Programação C

21

Introdução às Funções em Programação C

Introdução à Lógica e Programação

UFAL

Prova ATC - Linguagem uwu e Autômato de Pilha - 01-11-2023

1

Prova ATC - Linguagem uwu e Autômato de Pilha - 01-11-2023

Introdução à Lógica e Programação

UMG

Texto de pré-visualização

Discrete Optimization Assignment Traveling Salesman Problem 1 Problem Statement In this assignment you will design an algorithm to solve a fundamental problem faced by every traveling salesperson aptly named The Traveling Salesman Problem TSP All traveling salespeople start from their home travel to several cities to sell their goods and complete the day by returning home To minimize their costs traveling salespeople strive to visit all of the cities using the shortest total travel distance This amounts to finding a visitation order of all of the cities that minimizes the sum of distances traveled when moving from one city to another Figure 1 illustrates a small TSP and a feasible solution to that problem The cities are labeled from 04 4 Instructions Edit solverpy and modify the solve itinput data function to solve the optimization problem described above The function argument input data contains the problem data in the format described above The return value of solve it is a solution to the problem in the output format described above Your solve it implementation can be tested with the command python solverpy datainputFileName You should limit the solve it method to terminate within 5 hours otherwise the submission will not be eligible for full credit You may choose to implement your solver directly in python or modify the solve it function to call an external application Resources You will find several traveling salesman problem instances in the data directory pro vided with the handout Handin Run submitpy with the command python submitpy Follow the instructions to apply your solve it method on the various assignment parts You can submit multiple times and your grade will be the best of all submissions However it may take several minutes before your assignment is graded please be patient You can track the status of your submission on the feedback section of the assignment website Grading Infeasible solutions ie those that do not conform to the output format or violate problem constraints will receive 0 points Feasible solutions will receive at least 3 points Feasible solutions passing a low quality bar will receive at least 7 points and solutions meeting a high quality bar will receive all 10 points The grading feedback indicates how much your solution must improve to receive a higher grade Collaboration Rules In all assignments we encourage collaboration and the exchange of ideas on the discussion forums However please refrain from the following 1 Posting code or pseudocode related to the assignments 2 Using code which is not your own 3 Posting or sharing problem solutions Discussion of solution quality ie objective value and algorithm performance ie run time is allowed and the assignment leader board is designed to encourage such discussions Warnings 1 It is recommended you do not modify the data directory Modifying the files in the data directory risks making your assignment submissions incorrect 2 You cannot rename the solverpy file or the solve it method 3 Be careful when using global variables in your implementation The solve it method will be run repeatedly and it is your job to clear the global data between runs 4 solverpy must remain in the same directory as submitpy 3 5 Technical Requirements You will need to have python 279 or 35 at least installed on your system installation instruc tions httpwwwpythonorgdownloads 4

Sua Nova Sala de Aula

Sua Nova Sala de Aula

Empresa

Central de ajuda Contato Blog

Legal

Termos de uso Política de privacidade Política de cookies Código de honra

Baixe o app

4,8
(35.000 avaliações)
© 2025 Meu Guru®