100% de satisfacción garantizada Inmediatamente disponible después del pago Tanto en línea como en PDF No estas atado a nada 4.2 TrustPilot
logo-home
Notas de lectura

CO2412 Computational Thinking Lecture 7 Notes

Puntuación
-
Vendido
-
Páginas
3
Subido en
20-08-2024
Escrito en
2023/2024

This document contains comprehensive notes from Lecture 7 of the CO2412 course on Computational Thinking. The lecture explores two important strategies for solving optimization problems: Greedy Algorithms and the Branch and Bound method. It provides an in-depth understanding of how these approaches work, their characteristics, and when to use them.

Mostrar más Leer menos
Institución
Grado








Ups! No podemos cargar tu documento ahora. Inténtalo de nuevo o contacta con soporte.

Escuela, estudio y materia

Institución
Estudio
Desconocido
Grado

Información del documento

Subido en
20 de agosto de 2024
Número de páginas
3
Escrito en
2023/2024
Tipo
Notas de lectura
Profesor(es)
Amin amini
Contiene
Todas las clases

Temas

Vista previa del contenido

CO2412: Computational Thinking
Lecture 7

The Greedy Algorithm
1. Introduction
o A greedy algorithm follows the problem-solving heuristic of making
the locally optimal choice at each stage with the hope of finding the
global optimum.
o Greedy algorithms are typically used for optimization problems.

2. Characteristics of Greedy Algorithms
o Local Optimization: The algorithm selects the best option
available at each step without considering the broader context.
o Greedy Choice Property: It assumes that by choosing the optimal
local solution, the global solution will also be optimal.
o Optimal Substructure: The problem can be broken down into
smaller subproblems, which can be solved optimally.
Fractional Knapsack Problem
1. Problem Statement
o The Fractional Knapsack problem involves a thief who can carry a
maximum weight in their knapsack. The goal is to maximize the
value of the knapsack by taking fractions of items.
2. Greedy Approach to Fractional Knapsack
o Items are selected based on the highest value-to-weight ratio.

o The item with the highest ratio is taken first, followed by the next,
and so on, until the knapsack is full.
Example:
$4.81
Accede al documento completo:

100% de satisfacción garantizada
Inmediatamente disponible después del pago
Tanto en línea como en PDF
No estas atado a nada


Documento también disponible en un lote

Conoce al vendedor

Seller avatar
Los indicadores de reputación están sujetos a la cantidad de artículos vendidos por una tarifa y las reseñas que ha recibido por esos documentos. Hay tres niveles: Bronce, Plata y Oro. Cuanto mayor reputación, más podrás confiar en la calidad del trabajo del vendedor.
BpoBpo University of Central Lancashire Preston
Seguir Necesitas iniciar sesión para seguir a otros usuarios o asignaturas
Vendido
309
Miembro desde
5 año
Número de seguidores
250
Documentos
78
Última venta
1 mes hace

3.7

73 reseñas

5
27
4
17
3
17
2
5
1
7

Recientemente visto por ti

Por qué los estudiantes eligen Stuvia

Creado por compañeros estudiantes, verificado por reseñas

Calidad en la que puedes confiar: escrito por estudiantes que aprobaron y evaluado por otros que han usado estos resúmenes.

¿No estás satisfecho? Elige otro documento

¡No te preocupes! Puedes elegir directamente otro documento que se ajuste mejor a lo que buscas.

Paga como quieras, empieza a estudiar al instante

Sin suscripción, sin compromisos. Paga como estés acostumbrado con tarjeta de crédito y descarga tu documento PDF inmediatamente.

Student with book image

“Comprado, descargado y aprobado. Así de fácil puede ser.”

Alisha Student

Preguntas frecuentes