Buscar

What is the problem of activity selection? The activity selection problem is a problem in which a person has a list of jobs to do. Each activity h...

What is the problem of activity selection?

The activity selection problem is a problem in which a person has a list of jobs to do.
Each activity has a start time and an end time.
We need to schedule the activities in such a way that the person can complete a maximum number of activities.
Since the time of the activities can overlap, it may not be possible to complete all activities and therefore we must schedule the activities in such a way that the maximum number of activities can be completed.

Essa pergunta também está no material:

Estrategia avariciosa (Greedy)
10 pág.

Algoritmos e Programação Instituto Politécnico NacionalInstituto Politécnico Nacional

💡 1 Resposta

User badge image

Ed Verified user icon

The problem of activity selection, also known as the activity scheduling problem, is a problem where a person has a list of jobs or activities to do. Each activity has a start time and an end time. The goal is to schedule the activities in such a way that the person can complete the maximum number of activities possible. Since the activities may have overlapping time intervals, it may not be possible to complete all activities. Therefore, the objective is to find a schedule that maximizes the number of activities that can be completed without any conflicts. This problem is often solved using greedy algorithms, where activities are selected based on certain criteria, such as the earliest finish time or the shortest duration. By selecting activities in a greedy manner, we can find an optimal or near-optimal solution to the activity selection problem.

0
Dislike0

✏️ Responder

SetasNegritoItálicoSublinhadoTachadoCitaçãoCódigoLista numeradaLista com marcadoresSubscritoSobrescritoDiminuir recuoAumentar recuoCor da fonteCor de fundoAlinhamentoLimparInserir linkImagemFórmula

Para escrever sua resposta aqui, entre ou crie uma conta

User badge image

Outros materiais