100% tevredenheidsgarantie Direct beschikbaar na je betaling Lees online óf als PDF Geen vaste maandelijkse kosten
logo-home
CO2412 Computational Thinking Lecture 7 Notes €4,28
In winkelwagen

College aantekeningen

CO2412 Computational Thinking Lecture 7 Notes

 0 keer verkocht
  • Vak
  • Instelling

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...

[Meer zien]

Voorbeeld 1 van de 3  pagina's

  • 20 augustus 2024
  • 3
  • 2023/2024
  • College aantekeningen
  • Amin amini
  • Alle colleges
  • Onbekend
avatar-seller
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:

Dit zijn jouw voordelen als je samenvattingen koopt bij Stuvia:

Bewezen kwaliteit door reviews

Bewezen kwaliteit door reviews

Studenten hebben al meer dan 850.000 samenvattingen beoordeeld. Zo weet jij zeker dat je de beste keuze maakt!

In een paar klikken geregeld

In een paar klikken geregeld

Geen gedoe — betaal gewoon eenmalig met iDeal, creditcard of je Stuvia-tegoed en je bent klaar. Geen abonnement nodig.

Direct to-the-point

Direct to-the-point

Studenten maken samenvattingen voor studenten. Dat betekent: actuele inhoud waar jij écht wat aan hebt. Geen overbodige details!

Veelgestelde vragen

Wat krijg ik als ik dit document koop?

Je krijgt een PDF, die direct beschikbaar is na je aankoop. Het gekochte document is altijd, overal en oneindig toegankelijk via je profiel.

Tevredenheidsgarantie: hoe werkt dat?

Onze tevredenheidsgarantie zorgt ervoor dat je altijd een studiedocument vindt dat goed bij je past. Je vult een formulier in en onze klantenservice regelt de rest.

Van wie koop ik deze samenvatting?

Stuvia is een marktplaats, je koop dit document dus niet van ons, maar van verkoper BpoBpo. Stuvia faciliteert de betaling aan de verkoper.

Zit ik meteen vast aan een abonnement?

Nee, je koopt alleen deze samenvatting voor €4,28. Je zit daarna nergens aan vast.

Is Stuvia te vertrouwen?

4,6 sterren op Google & Trustpilot (+1000 reviews)

Afgelopen 30 dagen zijn er 66184 samenvattingen verkocht

Opgericht in 2010, al 15 jaar dé plek om samenvattingen te kopen

Begin nu gratis
€4,28
  • (0)
In winkelwagen
Toegevoegd