SlideShare ist ein Scribd-Unternehmen logo
1 von 32
Downloaden Sie, um offline zu lesen
Better Living
     through
Computing Algorithms?
       Stephanie Troeth
      Montreal Girl Geek Dinner
            May 28, 2008
Project management

[This talk is neither about project management ...]
Computing

[... nor strictly just about computing]
Efciency ...
... through creative problem solving
Just for fun.
       [nothing scientic, or proven,
but maybe a basis for a thought experiment]
Let’s look at this in
    two unequal parts

• Choosing a couple of known problems, and
  looking at algorithms to apply
• A brief discussion of other algorithms, and
  perhaps where we can apply them
Example issue #1:
Time management
Other ways you might know


   • Big rocks vs little rocks
   • Getting Things Done
Big rocks, little rocks
• Consider a finite space, such as a jar
• Imagine you have big rocks and little rocks
• If you fill it with little rocks first, there will
  be no more space left for the big rocks
• If you fill it with big rocks first, you may still
  t the little rocks between the gaps
Getting things done
•   Collect - get everything out of your head into your
    favourite form of “bucket”

•   Process - trimming off small tasks but allow for
    way to process bigger jobs

•   Organize - contextualize things that need doing

•   Review - make sure your lists are current

•   Do (!)
Key aspects of efciency

• Priorities (though GTD plays down on this)
• How tasks are defined
• Order of tasks
• A way to execute them
How do you do it?
[at this point, a few people talked
about their tips and techniques —
  “tiny to-do lists”, variations on
GTD, what’s worked for them and
           what hasn’t.]
The computer as your bus driver

• Priority queues
• Schedulers

  [we discussed bus queues as metaphors]
A few algorithms
• First In, First Out / Last in, First Out
• Shortest Job Next
• Shortest Time Remaining
• Critical path method
• Earliest Deadline First
• Round Robin
First In, First Out
• What comes in first is handled first
• What comes in next waits until the
  rst is nished
• Basically: first come, first served
Last In, First Out
• What comes in first is handled last
• Every item or task is handled the
  reverse order they arrived in



                ... kinda like how you would sort
   a pile of papers you’ve just stacked together.
Round Robin

• Gives each item an equal slice of time
• Rotates to next item when time is up
• Keeps going until all tasks are done
Shortest Job Next
• Do the shortest job on the queue
  until it’s done
• Pick the next shortest job on the
  queue

 gets a lot of things done, but longer jobs
won’t get done if you keep adding short jobs
Shortest Time Remaining
 • Do the task that has the smallest
  amount of time left
• When a new task turns up, compare it
  with the current one that you’re
  doing, give priority to the task with
  shortest time

            ... needs accuracy in time estimation
Earliest Deadline First

• Do the task that’s closest to its
  deadline until it’s finished
• Then look at your queue for the next
  item closest to its deadline


 works okay if you have enough resources
    to complete all your deadlines ...
Critical Path Method

•   Work out all activities that are required
•   How long each activity is likely to take?
•   Which activity depends on which?
•   Map out the shortest possible time to complete
    everything by adding up longest essential tasks
    based on dependencies
Example issue #2:
    Cooking
What’s for dinner?

• Caesar salad
• Lamb roast
• Vanilla ice cream with strawberry coulis
How do you make sure:
• the salad stays fresh
• the roast stays warm
• the coulis is sufficiently cooled (but not cold)
• the ice cream stays frozen
• the guests don’t have to wait too long
  between courses?
[at this point the we debated which
dish we should begin cooking rst, and
 the ner points on how to make the
         perfect caesar salad ...]
Other ones to get our heads around
Divide and conquer
 Recursively breaking things down into related sub-problems, until
 each one can be solved directly.

Bubble sort
 Compare pairs of adjacent items in a list, swap if necessary, until no
 swaps are needed.

Travelling salesman problem
 What is the most economical route if a person were to travel to
 each city only once (where the distance between cities is known)
 and return to the home city?
Endless fun
•   Putting away groceries?

•   Hanging up / putting away laundry?

•   Cleaning house (bottom up or top down?)

•   Making the bed?

•   Applying make-up?

•   Baking?

•   Washing dishes?

•   Watering plants?
All that said,
we are only
   human.
Thank you.
About
    Stephanie Troeth is someone who has the uncanny knack to make things
    happen. She likes the challenge of making dreams tangible.
    http://stephanietroeth.com/


Further Reading
•    http://www.nist.gov/dads/
•    http://www.personal.kent.edu/~rmuhamma/Algorithms/algorithm.html
•    http://en.wikipedia.org/wiki/Scheduling_%28computing%29




Thanks
•    Olivier Thereaux
•    Stephanie Booth
•    http://flickr.com/photos/christajoy42/2385583808/
•    http://flickr.com/photos/30261607@N00/2382070344/
•    http://flickr.com/photos/gaetanlee/421949167/

Weitere ähnliche Inhalte

Ähnlich wie Better Living Through Computing Algorithms?

Website Makeover Made Easy
Website Makeover Made EasyWebsite Makeover Made Easy
Website Makeover Made EasyPhillip Smith
 
Life Hackery
Life HackeryLife Hackery
Life HackeryEric Marden
 
Understanding Kanban
Understanding KanbanUnderstanding Kanban
Understanding Kanbannikos batsios
 
Kanban - the gateway to total improvement
Kanban - the gateway to total improvementKanban - the gateway to total improvement
Kanban - the gateway to total improvementPaul Ellarby
 
Time Management (1)
Time Management (1)Time Management (1)
Time Management (1)Pranavsinh
 
Simple Project Management As A Series Of Questions
Simple Project  Management As A Series Of QuestionsSimple Project  Management As A Series Of Questions
Simple Project Management As A Series Of Questionsjordanengel
 
GTD for Project- and LOB managers
GTD for Project- and LOB managersGTD for Project- and LOB managers
GTD for Project- and LOB managersUPrince
 
Elevate Your Workflow with Omnifocus
Elevate Your Workflow with OmnifocusElevate Your Workflow with Omnifocus
Elevate Your Workflow with OmnifocusKhe Hy
 
Even More Agile
Even More AgileEven More Agile
Even More AgileNaresh Jain
 
Understanding bdd and tdd with lego
Understanding bdd and tdd with legoUnderstanding bdd and tdd with lego
Understanding bdd and tdd with legoColdFusionConference
 
Why projects do not fulfill deadlines? and how we can change this!
Why projects do not fulfill deadlines? and how we can change this!Why projects do not fulfill deadlines? and how we can change this!
Why projects do not fulfill deadlines? and how we can change this!looplearn
 
New Time Mgt
New Time MgtNew Time Mgt
New Time Mgttalcpowder
 
How to fix your software development process
How to fix your software development processHow to fix your software development process
How to fix your software development processSimba Sagwete
 
20190413 zen and the art of programming
20190413 zen and the art of programming20190413 zen and the art of programming
20190413 zen and the art of programmingDavid Horvath
 
Management Consulting Productivity Hacks
Management Consulting Productivity HacksManagement Consulting Productivity Hacks
Management Consulting Productivity HacksAsen Gyczew
 
Time Management FORTIUS 09
Time Management FORTIUS 09Time Management FORTIUS 09
Time Management FORTIUS 09ceta ceu
 
Nightmare on PMO Street
Nightmare on PMO StreetNightmare on PMO Street
Nightmare on PMO StreetKeyedIn Projects
 

Ähnlich wie Better Living Through Computing Algorithms? (20)

Website Makeover Made Easy
Website Makeover Made EasyWebsite Makeover Made Easy
Website Makeover Made Easy
 
Life Hackery
Life HackeryLife Hackery
Life Hackery
 
Time Management
Time ManagementTime Management
Time Management
 
Understanding Kanban
Understanding KanbanUnderstanding Kanban
Understanding Kanban
 
Kanban - the gateway to total improvement
Kanban - the gateway to total improvementKanban - the gateway to total improvement
Kanban - the gateway to total improvement
 
Time Management (1)
Time Management (1)Time Management (1)
Time Management (1)
 
Simple Project Management As A Series Of Questions
Simple Project  Management As A Series Of QuestionsSimple Project  Management As A Series Of Questions
Simple Project Management As A Series Of Questions
 
Mlw
MlwMlw
Mlw
 
GTD for Project- and LOB managers
GTD for Project- and LOB managersGTD for Project- and LOB managers
GTD for Project- and LOB managers
 
Elevate Your Workflow with Omnifocus
Elevate Your Workflow with OmnifocusElevate Your Workflow with Omnifocus
Elevate Your Workflow with Omnifocus
 
Even More Agile
Even More AgileEven More Agile
Even More Agile
 
Understanding bdd and tdd with lego
Understanding bdd and tdd with legoUnderstanding bdd and tdd with lego
Understanding bdd and tdd with lego
 
Why projects do not fulfill deadlines? and how we can change this!
Why projects do not fulfill deadlines? and how we can change this!Why projects do not fulfill deadlines? and how we can change this!
Why projects do not fulfill deadlines? and how we can change this!
 
New Time Mgt
New Time MgtNew Time Mgt
New Time Mgt
 
How to fix your software development process
How to fix your software development processHow to fix your software development process
How to fix your software development process
 
20190413 zen and the art of programming
20190413 zen and the art of programming20190413 zen and the art of programming
20190413 zen and the art of programming
 
Management Consulting Productivity Hacks
Management Consulting Productivity HacksManagement Consulting Productivity Hacks
Management Consulting Productivity Hacks
 
Time Management FORTIUS 09
Time Management FORTIUS 09Time Management FORTIUS 09
Time Management FORTIUS 09
 
Nightmare on PMO Street
Nightmare on PMO StreetNightmare on PMO Street
Nightmare on PMO Street
 
Budgets
BudgetsBudgets
Budgets
 

Mehr von stephtroeth

Cheat Your Way With UX
Cheat Your Way With UXCheat Your Way With UX
Cheat Your Way With UXstephtroeth
 
Journey over Destination: creating an effective framework with UX tools
Journey over Destination: creating an effective framework with UX toolsJourney over Destination: creating an effective framework with UX tools
Journey over Destination: creating an effective framework with UX toolsstephtroeth
 
Being Agile, Being Good
Being Agile, Being GoodBeing Agile, Being Good
Being Agile, Being Goodstephtroeth
 
Defying the itch to stitch
Defying the itch to stitchDefying the itch to stitch
Defying the itch to stitchstephtroeth
 
Realising Dreams: Building for the Web
Realising Dreams: Building for the WebRealising Dreams: Building for the Web
Realising Dreams: Building for the Webstephtroeth
 
Managing The Metamorphosis
Managing The MetamorphosisManaging The Metamorphosis
Managing The Metamorphosisstephtroeth
 
Making Ends Meet
Making Ends MeetMaking Ends Meet
Making Ends Meetstephtroeth
 

Mehr von stephtroeth (7)

Cheat Your Way With UX
Cheat Your Way With UXCheat Your Way With UX
Cheat Your Way With UX
 
Journey over Destination: creating an effective framework with UX tools
Journey over Destination: creating an effective framework with UX toolsJourney over Destination: creating an effective framework with UX tools
Journey over Destination: creating an effective framework with UX tools
 
Being Agile, Being Good
Being Agile, Being GoodBeing Agile, Being Good
Being Agile, Being Good
 
Defying the itch to stitch
Defying the itch to stitchDefying the itch to stitch
Defying the itch to stitch
 
Realising Dreams: Building for the Web
Realising Dreams: Building for the WebRealising Dreams: Building for the Web
Realising Dreams: Building for the Web
 
Managing The Metamorphosis
Managing The MetamorphosisManaging The Metamorphosis
Managing The Metamorphosis
 
Making Ends Meet
Making Ends MeetMaking Ends Meet
Making Ends Meet
 

KĂźrzlich hochgeladen

AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAndrey Devyatkin
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelDeepika Singh
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWERMadyBayot
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxRustici Software
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsNanddeep Nachan
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Jeffrey Haguewood
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Victor Rentea
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesrafiqahmad00786416
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Victor Rentea
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Zilliz
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...apidays
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MIND CTI
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Angeliki Cooney
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingEdi Saputra
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDropbox
 

KĂźrzlich hochgeladen (20)

AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 

Better Living Through Computing Algorithms?

  • 1. Better Living through Computing Algorithms? Stephanie Troeth Montreal Girl Geek Dinner May 28, 2008
  • 2. Project management [This talk is neither about project management ...]
  • 3. Computing [... nor strictly just about computing]
  • 5. ... through creative problem solving
  • 6. Just for fun. [nothing scientic, or proven, but maybe a basis for a thought experiment]
  • 7. Let’s look at this in two unequal parts • Choosing a couple of known problems, and looking at algorithms to apply • A brief discussion of other algorithms, and perhaps where we can apply them
  • 9. Other ways you might know • Big rocks vs little rocks • Getting Things Done
  • 10. Big rocks, little rocks • Consider a nite space, such as a jar • Imagine you have big rocks and little rocks • If you ll it with little rocks rst, there will be no more space left for the big rocks • If you ll it with big rocks rst, you may still t the little rocks between the gaps
  • 11. Getting things done • Collect - get everything out of your head into your favourite form of “bucket” • Process - trimming off small tasks but allow for way to process bigger jobs • Organize - contextualize things that need doing • Review - make sure your lists are current • Do (!)
  • 12. Key aspects of efciency • Priorities (though GTD plays down on this) • How tasks are dened • Order of tasks • A way to execute them
  • 13. How do you do it?
  • 14. [at this point, a few people talked about their tips and techniques — “tiny to-do lists”, variations on GTD, what’s worked for them and what hasn’t.]
  • 15. The computer as your bus driver • Priority queues • Schedulers [we discussed bus queues as metaphors]
  • 16. A few algorithms • First In, First Out / Last in, First Out • Shortest Job Next • Shortest Time Remaining • Critical path method • Earliest Deadline First • Round Robin
  • 17. First In, First Out • What comes in rst is handled rst • What comes in next waits until the rst is nished • Basically: rst come, rst served
  • 18. Last In, First Out • What comes in rst is handled last • Every item or task is handled the reverse order they arrived in ... kinda like how you would sort a pile of papers you’ve just stacked together.
  • 19. Round Robin • Gives each item an equal slice of time • Rotates to next item when time is up • Keeps going until all tasks are done
  • 20. Shortest Job Next • Do the shortest job on the queue until it’s done • Pick the next shortest job on the queue gets a lot of things done, but longer jobs won’t get done if you keep adding short jobs
  • 21. Shortest Time Remaining • Do the task that has the smallest amount of time left • When a new task turns up, compare it with the current one that you’re doing, give priority to the task with shortest time ... needs accuracy in time estimation
  • 22. Earliest Deadline First • Do the task that’s closest to its deadline until it’s nished • Then look at your queue for the next item closest to its deadline works okay if you have enough resources to complete all your deadlines ...
  • 23. Critical Path Method • Work out all activities that are required • How long each activity is likely to take? • Which activity depends on which? • Map out the shortest possible time to complete everything by adding up longest essential tasks based on dependencies
  • 25. What’s for dinner? • Caesar salad • Lamb roast • Vanilla ice cream with strawberry coulis
  • 26. How do you make sure: • the salad stays fresh • the roast stays warm • the coulis is sufciently cooled (but not cold) • the ice cream stays frozen • the guests don’t have to wait too long between courses?
  • 27. [at this point the we debated which dish we should begin cooking rst, and the ner points on how to make the perfect caesar salad ...]
  • 28. Other ones to get our heads around Divide and conquer Recursively breaking things down into related sub-problems, until each one can be solved directly. Bubble sort Compare pairs of adjacent items in a list, swap if necessary, until no swaps are needed. Travelling salesman problem What is the most economical route if a person were to travel to each city only once (where the distance between cities is known) and return to the home city?
  • 29. Endless fun • Putting away groceries? • Hanging up / putting away laundry? • Cleaning house (bottom up or top down?) • Making the bed? • Applying make-up? • Baking? • Washing dishes? • Watering plants?
  • 30. All that said, we are only human.
  • 32. About Stephanie Troeth is someone who has the uncanny knack to make things happen. She likes the challenge of making dreams tangible. http://stephanietroeth.com/ Further Reading • http://www.nist.gov/dads/ • http://www.personal.kent.edu/~rmuhamma/Algorithms/algorithm.html • http://en.wikipedia.org/wiki/Scheduling_%28computing%29 Thanks • Olivier Thereaux • Stephanie Booth • http://flickr.com/photos/christajoy42/2385583808/ • http://flickr.com/photos/30261607@N00/2382070344/ • http://flickr.com/photos/gaetanlee/421949167/