SlideShare a Scribd company logo
1 of 2
Download to read offline
CRITERION B: DESIGN
DATA STRUCTURES
This program involves two main classes: events and tasks. Events are scheduled
components of the agenda. An event includes a title, start time, and an end time. Tasks do not
have any set times, but have a duration and priority, both of which can be updated by the user.
Ultimately, the agenda will display only events; some of the events will be static while other will
be instances of placed tasks. Since Java’s “DateTime” data structures are too complex, simpler
Time and Duration classes will be created and used.
ALGORITHMS
Although the data structures are fairly simple, the algorithms are quite complex. Apart
from the myriad simpler algorithms that convert user input into data structures, the core
algorithm of the program needs to take tasks given duration and priority, and time them into
agenda events. In addition, another algorithm is to change the timing of the tasks when tasks are
progressed or completed. Here is a shortened example:
Task Title Task Duration Task Priority
A 30 minutes (0:30) 1
B 25 minutes (0:25) 2
C 1 hour (1:00) 3
D 5 minutes (0:05) 4
E 2 hours (2:00) 5
Timeline:
In this situation, from 0’clock to 6’clock, tasks A-E need to be completed. Before diving into
how the algorithm works, try to fit the tasks in intuitively. It’s apparent that although task E has
the lowest priority, it has the longest duration. This brings up a dilemma in prioritization, where
duration of the task can override priority since the task needs to be completed. The following
algorithm considers this dilemma and solves it.
0 1 2 3 4 5 6
Static Event: Extended Lunch
This is the central algorithm of the program, involving other complex processes such as getting
free time, prioritizing tasks, and managing all the events in the agenda.

More Related Content

Similar to Crit B Design

PMGT 510Principles of Project ManagementGroup Assign.docx
PMGT 510Principles of Project ManagementGroup Assign.docxPMGT 510Principles of Project ManagementGroup Assign.docx
PMGT 510Principles of Project ManagementGroup Assign.docx
stilliegeorgiana
 
9 project planning
9 project planning9 project planning
9 project planning
randhirlpu
 
8 project planning
8 project planning8 project planning
8 project planning
randhirlpu
 
Critical Path MethodIntroductionOnce you have the network diag.docx
Critical Path MethodIntroductionOnce you have the network diag.docxCritical Path MethodIntroductionOnce you have the network diag.docx
Critical Path MethodIntroductionOnce you have the network diag.docx
annettsparrow
 
Multiprocessor scheduling 3
Multiprocessor scheduling 3Multiprocessor scheduling 3
Multiprocessor scheduling 3
mrbourne
 
Project TimeIST4055Chapter 6Now that you have the Sc.docx
Project TimeIST4055Chapter 6Now that you have the Sc.docxProject TimeIST4055Chapter 6Now that you have the Sc.docx
Project TimeIST4055Chapter 6Now that you have the Sc.docx
briancrawford30935
 

Similar to Crit B Design (20)

PMGT 510Principles of Project ManagementGroup Assign.docx
PMGT 510Principles of Project ManagementGroup Assign.docxPMGT 510Principles of Project ManagementGroup Assign.docx
PMGT 510Principles of Project ManagementGroup Assign.docx
 
Crit C Development
Crit C DevelopmentCrit C Development
Crit C Development
 
Cpm critical path method
Cpm   critical path methodCpm   critical path method
Cpm critical path method
 
Chapter 4.pptx
Chapter 4.pptxChapter 4.pptx
Chapter 4.pptx
 
PMP Exam Prep - Time Management
PMP Exam Prep - Time ManagementPMP Exam Prep - Time Management
PMP Exam Prep - Time Management
 
9 project planning
9 project planning9 project planning
9 project planning
 
Ms project 2010 level 1&2
Ms project 2010 level 1&2 Ms project 2010 level 1&2
Ms project 2010 level 1&2
 
8 project planning
8 project planning8 project planning
8 project planning
 
Task allocation and scheduling inmultiprocessors
Task allocation and scheduling inmultiprocessorsTask allocation and scheduling inmultiprocessors
Task allocation and scheduling inmultiprocessors
 
PERT-Overview1.pdf
PERT-Overview1.pdfPERT-Overview1.pdf
PERT-Overview1.pdf
 
Clock driven scheduling
Clock driven schedulingClock driven scheduling
Clock driven scheduling
 
Critical Path MethodIntroductionOnce you have the network diag.docx
Critical Path MethodIntroductionOnce you have the network diag.docxCritical Path MethodIntroductionOnce you have the network diag.docx
Critical Path MethodIntroductionOnce you have the network diag.docx
 
6 time PMBOK
6 time PMBOK6 time PMBOK
6 time PMBOK
 
Time Table Management System Software Report
Time Table Management System Software ReportTime Table Management System Software Report
Time Table Management System Software Report
 
Multiprocessor scheduling 3
Multiprocessor scheduling 3Multiprocessor scheduling 3
Multiprocessor scheduling 3
 
Chapter 06
Chapter 06Chapter 06
Chapter 06
 
Project TimeIST4055Chapter 6Now that you have the Sc.docx
Project TimeIST4055Chapter 6Now that you have the Sc.docxProject TimeIST4055Chapter 6Now that you have the Sc.docx
Project TimeIST4055Chapter 6Now that you have the Sc.docx
 
4-ProjectPlanning.ppt
4-ProjectPlanning.ppt4-ProjectPlanning.ppt
4-ProjectPlanning.ppt
 
task_sched2.ppt
task_sched2.ppttask_sched2.ppt
task_sched2.ppt
 
Week 10 - 22W Students.pdf
Week 10 - 22W Students.pdfWeek 10 - 22W Students.pdf
Week 10 - 22W Students.pdf
 

More from Anand Sekar

More from Anand Sekar (11)

Deep Tricorder
Deep TricorderDeep Tricorder
Deep Tricorder
 
Wi-Fi Direct P2P Messenger-Browser App
Wi-Fi Direct P2P Messenger-Browser AppWi-Fi Direct P2P Messenger-Browser App
Wi-Fi Direct P2P Messenger-Browser App
 
Crit E Evaluation
Crit E EvaluationCrit E Evaluation
Crit E Evaluation
 
Crit A Planning
Crit A PlanningCrit A Planning
Crit A Planning
 
WAS Drawings
WAS DrawingsWAS Drawings
WAS Drawings
 
IB Physics IA
IB Physics IAIB Physics IA
IB Physics IA
 
English 111 Reading Response
English 111 Reading ResponseEnglish 111 Reading Response
English 111 Reading Response
 
English 111 FInal Paper
English 111 FInal PaperEnglish 111 FInal Paper
English 111 FInal Paper
 
Trickfire Robotics NASA RMC 2017 Systems Engineering Paper
Trickfire Robotics NASA RMC 2017 Systems Engineering PaperTrickfire Robotics NASA RMC 2017 Systems Engineering Paper
Trickfire Robotics NASA RMC 2017 Systems Engineering Paper
 
Swiss Army Desk
Swiss Army DeskSwiss Army Desk
Swiss Army Desk
 
Senior Thesis
Senior ThesisSenior Thesis
Senior Thesis
 

Recently uploaded

result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college project
Tonystark477637
 

Recently uploaded (20)

Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - V
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college project
 
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank  Design by Working Stress - IS Method.pdfIntze Overhead Water Tank  Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
 
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
 
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
 
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELLPVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
 
NFPA 5000 2024 standard .
NFPA 5000 2024 standard                                  .NFPA 5000 2024 standard                                  .
NFPA 5000 2024 standard .
 
Vivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design SpainVivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design Spain
 
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdf
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
 
chapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringchapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineering
 
UNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular ConduitsUNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular Conduits
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghly
 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
 
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
 

Crit B Design

  • 1. CRITERION B: DESIGN DATA STRUCTURES This program involves two main classes: events and tasks. Events are scheduled components of the agenda. An event includes a title, start time, and an end time. Tasks do not have any set times, but have a duration and priority, both of which can be updated by the user. Ultimately, the agenda will display only events; some of the events will be static while other will be instances of placed tasks. Since Java’s “DateTime” data structures are too complex, simpler Time and Duration classes will be created and used. ALGORITHMS Although the data structures are fairly simple, the algorithms are quite complex. Apart from the myriad simpler algorithms that convert user input into data structures, the core algorithm of the program needs to take tasks given duration and priority, and time them into agenda events. In addition, another algorithm is to change the timing of the tasks when tasks are progressed or completed. Here is a shortened example: Task Title Task Duration Task Priority A 30 minutes (0:30) 1 B 25 minutes (0:25) 2 C 1 hour (1:00) 3 D 5 minutes (0:05) 4 E 2 hours (2:00) 5 Timeline: In this situation, from 0’clock to 6’clock, tasks A-E need to be completed. Before diving into how the algorithm works, try to fit the tasks in intuitively. It’s apparent that although task E has the lowest priority, it has the longest duration. This brings up a dilemma in prioritization, where duration of the task can override priority since the task needs to be completed. The following algorithm considers this dilemma and solves it. 0 1 2 3 4 5 6 Static Event: Extended Lunch
  • 2. This is the central algorithm of the program, involving other complex processes such as getting free time, prioritizing tasks, and managing all the events in the agenda.