SEN2022 · Week 4 · Problem Analysis, Scheduling Tools

Problem analysis and scheduling tools: Gantt, PERT, critical path

Finding the root cause of a problem (fishbone, PIECES) and turning the work plan into a Gantt chart and a PERT/CPM network. Forward and backward passes, the critical path and slack calculations are almost certain on the exam.

problem analysisroot cause analysisfishbone (Ishikawa) diagramPIECES frameworkGantt chartPERT chartcritical path method (CPM)critical pathearly start (ES)early finish (EF)late start (LS)late finish (LF)slack (float)milestonepredecessorthree-point estimate

This week has two parts. The first is problem analysis: finding the real cause under the user’s complaint. The second is scheduling tools: turning the task list (WBS) you produced in week 3 into a calendar and a network. The exam calculation is here: a task table is given, and you build the network, do the forward and backward passes, and find the critical path and the slacks. Whoever solves this question by building a table does not miss it.

Golden rules:

  1. Don’t solve the symptom, solve the cause. “The system is slow” is a symptom.
  2. Critical path = longest path. The project duration is the length of the critical path.
  3. Max on the forward pass, min on the backward pass.
  4. Slack = LS − ES. It is 0 for critical tasks.

Problem analysis

At the beginning of the analysis phase the current system (as-is) is examined and problems are listed. Users usually state a symptom: “Borrowing a book takes too long.” The analyst’s job is to find its cause. If the cause is not solved, the new system will carry the same problem.

Root cause analysis

A simple technique: ask “Why?” several times.

The lending process takes long.       Why?
 -> The clerk writes each book by hand. Why?
 -> There is no barcode reader.          Why?
 -> The old system does not support barcodes.
Root cause: the system does not support barcodes.

Fishbone (Ishikawa) diagram

The problem is written at the head of the fish, and the bones are cause categories.

 People        Process
   \             \
    \ single clerk \ paper form
     \             \
------+-------------+-----> [Borrowing a laptop
     /             /         takes 20 min]
    / reader      / ID
   /  broken     /  photocopy
 Technology    Policy

Specific causes are written on each bone, and then which ones are really effective is checked with data (observation, measurement).

The PIECES framework

A checklist for classifying problems:

LetterCategoryExample question
PPerformanceIs the throughput sufficient, is the response time acceptable?
IInformationIs the data correct, current, timely, useful?
EEconomicsIs the cost too high, is there a missed revenue opportunity?
CControlAre security, privacy and error control sufficient?
EEfficiencyIs there waste of people, time, material?
SServiceIs the service to the user accurate, consistent, easy?

Problems are prioritized (impact, urgency) and improvement objectives are written: “Reduce the lending time from 20 minutes to 3 minutes.” A measurable objective makes it possible to test success in later stages.

Gantt chart

A Gantt chart shows the tasks as horizontal bars on a calendar. It is easy to read and ideal for presenting to managers. Progress is shown by filling the inside of the bar, and milestones with diamonds.

Day           0    5    10   15 18
A Requirements ####
B DB design       ###
C UI design       #####
D Backend            ######
E Frontend             ###
H Manual               ##
F Integration              ###
G Test                        ##
Delivery                          <>

Its weakness: dependencies (which task is waiting for which) are hard to see. A PERT network is used for that.

PERT and CPM

A PERT chart (program evaluation and review technique) shows the tasks as nodes and the dependencies as arrows. CPM (critical path method) finds the longest path on this network.

Three-point estimate

If the duration is uncertain, three estimates are taken for each task: optimistic (oo), most likely (mm), pessimistic (pp).

te=o+4m+p6t_e = \frac{o + 4m + p}{6}

Example: o=4o = 4, m=6m = 6, p=14p = 14 days → te=(4+24+14)/6=7t_e = (4 + 24 + 14)/6 = 7 days. The standard deviation is about (p−o)/6=1.67(p - o)/6 = 1.67 days.

Four values

ValueMeaningRule
ESEarliest startThe largest of the EFs of the predecessors (0 if none)
EFEarliest finishES + duration
LFLatest finishThe smallest of the LSs of the successors (the project duration for the last task)
LSLatest startLF − duration

Slack (float) = LS − ES. How much the task can slip without delaying the project.

Worked example: library reservation system

TaskDescriptionDuration (days)Predecessor
ARequirements gathering4-
BDatabase design3A
CInterface design5A
DBackend development6B
EFrontend development3C
FIntegration3D, E
HUser manual2C
GTest and delivery2F, H

Network

        +-->[B 3]-->[D 6]--+
        |                  v
[A 4]---+-->[C 5]-->[E 3]->[F 3]-->[G 2]
              |                     ^
              +------>[H 2]---------+

Forward pass

Left to right. ES = the largest of the EFs of the predecessors.

A: ES 0               EF 0+4  = 4
B: ES 4  (A)          EF 4+3  = 7
C: ES 4  (A)          EF 4+5  = 9
D: ES 7  (B)          EF 7+6  = 13
E: ES 9  (C)          EF 9+3  = 12
H: ES 9  (C)          EF 9+2  = 11
F: ES max(13,12)=13   EF 13+3 = 16
G: ES max(16,11)=16   EF 16+2 = 18
Project duration = 18 days

Backward pass

Right to left. The LF of the last task is the project duration. LF = the smallest of the LSs of the successors.

G: LF 18              LS 18-2 = 16
F: LF 16 (G)          LS 16-3 = 13
H: LF 16 (G)          LS 16-2 = 14
D: LF 13 (F)          LS 13-6 = 7
E: LF 13 (F)          LS 13-3 = 10
C: LF min(10,14)=10   LS 10-5 = 5
B: LF 7  (D)          LS 7-3  = 4
A: LF min(4,5)=4      LS 4-4  = 0

Table and slack

TaskDurationESEFLSLFSlack
A404040
B347470
C5495101
D67137130
E391210131
F3131613160
H291114165
G2161816180

Critical path: A-B-D-F-G, 4 + 3 + 6 + 3 + 2 = 18 days. To check, the other paths: A-C-E-F-G = 17, A-C-H-G = 13. The longest is 18, consistent.

Interpretation

  • If D slips by one day, the project goes to 19 days. If D slips by three days, 21 days.
  • C or E can slip by one day without affecting the project. But if they slip, there will be two critical paths and the risk rises.
  • H can slip by five days. If resources get tight, it makes sense to temporarily move the person on H to D.

PITFALL · using max in the backward pass. C has two successors: E (LS 10) and H (LS 14). LF takes the smallest: 10. If you take 14, you give C a false slack and delay E.

TIP · cross-check. At the end of the calculation, check that the tasks with slack 0 form a chain and that the length of this chain equals the project duration. If not, there is an error somewhere.

Common mistakes

Wrong ideaThe truth
The critical path is the shortest pathIt is the longest path; the project cannot finish before it
ES = the sum of the EFs of the predecessorsES = the largest of the EFs of the predecessors
LF = the largest of the LSs of the successorsThe smallest
Slack = EF − ESSlack = LS − ES (that difference is just the duration)
If a task with slack slips, the project slipsA delay up to the slack does not affect the project
PERT duration = (o + m + p) / 3(o + 4m + p) / 6
A Gantt chart shows dependencies wellFor dependencies a PERT network is better
Solving the symptom is enoughSolve the root cause, or the problem comes back

Test yourself

Exam-style questions. Solve them on paper first, then reveal the answer.

Question 1easy

In the PIECES framework, what does each letter stand for?

Show answer
Performance, Information, Economics, Control, Efficiency, Service

PIECES is a checklist for classifying problems. Performance (slowness, throughput), Information (missing/wrong data), Economics (cost, opportunity), Control (security, errors, authorization), Efficiency (waste of resources), Service (quality of service to the user).

Question 2medium

Library staff say: 'Overdue notices are sent late because a clerk types them by hand.' Which PIECES category fits best?

  1. Performance or Efficiency
  2. Control
  3. Economics
  4. Information only
Show answer
A) Performance or Efficiency

Typing by hand is both slow (performance: response time) and wasteful (efficiency: staff effort). Control is about security and error checking, Economics is a cost/revenue problem. If you write it with a justification on the exam, both categories are accepted.

Question 3easy

A task has optimistic 2, most likely 5 and pessimistic 14 days. What is its PERT expected duration?

Show answer
6 days

te=o+4m+p6=2+20+146=366=6t_e = \frac{o + 4m + p}{6} = \frac{2 + 20 + 14}{6} = \frac{36}{6} = 6 days.

Question 4easy

A task has estimates o = 3, m = 4, p = 11 days. What is its PERT expected duration?

Show answer
5 days

te=3+4⋅4+116=306=5t_e = \frac{3 + 4\cdot 4 + 11}{6} = \frac{30}{6} = 5 days. It is not a simple average; the most likely value gets 4 times the weight.

Question 5medium

Gym project tasks (days, predecessors): P 2 (none), Q 4 (P), R 3 (P), S 5 (Q), T 2 (R), U 1 (S, T). What is the project duration?

Show answer
12 days

Paths: P-Q-S-U = 2 + 4 + 5 + 1 = 12. P-R-T-U = 2 + 3 + 2 + 1 = 8. The longest path is 12 days; that is the project duration.

Question 6easy

For the same gym network, what is the critical path?

Show answer
P-Q-S-U

The critical path is the longest path, and the tasks on it have slack 0. P-Q-S-U (12 days) > P-R-T-U (8 days).

Question 7medium

For the same gym network, what is the slack of task R?

Show answer
4 days

Forward pass: R ES = 2, EF = 5. T ES = 5, EF = 7. U ES = max(11, 7) = 11.
Backward pass: U LF = 12, LS = 11. T LF = 11, LS = 9. R LF = 9, LS = 6.
Slack = LS − ES = 6 − 2 = 4 days. The slack of T is also 4.

Question 8medium

In the library network of this page (critical path A-B-D-F-G, 18 days), task D slips by 3 days (6 → 9). What is the new project duration?

Show answer
21 days

D is on the critical path, with slack 0. Any delay on the critical path delays the project by the same amount: 18 + 3 = 21 days. The critical path stays the same.

Question 9hard

In the same library network, task E (slack 1) slips by 1 day. What happens?

Show answer
Duration stays 18 days, but E's path A-C-E-F-G also becomes critical.

E has 1 day of slack, which absorbs a delay of 1 day. The duration does not change but the slack drops to zero: now there are two critical paths (A-B-D-F-G and A-C-E-F-G). The project has become riskier.

Question 10easy

Which statement about Gantt and PERT charts is TRUE?

  1. Gantt charts show task dependencies more clearly than PERT
  2. PERT charts show dependencies and the critical path; Gantt charts show timing and progress on a calendar
  3. Both show only the critical path
  4. PERT charts cannot use time estimates
Show answer
B) PERT charts show dependencies and the critical path; Gantt charts show timing and progress on a calendar

Gantt: horizontal bars on a calendar, showing when each task starts and ends and how much is done. Easy to read. PERT: dependencies and the critical path with nodes and arrows. The two complement each other.

Question 11easy

What is a milestone in a project schedule?

Show answer
A zero-duration event marking an important point, such as completion of a deliverable.

A milestone is an event with duration 0: "System proposal approved", "Beta delivered". In a Gantt chart it is usually shown with a diamond. It is used to measure progress.

Question 12medium

A fishbone diagram's head is labeled 'Students wait 20 min to borrow a laptop'. What goes on the bones?

Show answer
Categories of possible causes (e.g., people, process, technology, policy) with specific causes under each.

In an Ishikawa (fishbone) diagram, the head is the problem (the effect) and the bones are cause categories. Specific causes are written on each bone: Process "paper form", Technology "barcode reader broken", People "single clerk", Policy "ID photocopy requirement". The goal is to find the root cause, not the symptom.

Verification: The ES/EF/LS/LF, slack, critical path and project durations of all networks, and the PERT expected durations, were computed with node (verify/SEN2022/04.mjs, cpm and pert functions in lib.mjs). Conceptual questions were compared with the standard definitions.

Review card

Problem analysis: symptom ≠ cause. Find the root cause (root cause analysis) Fishbone: head = problem, bones = cause categories PIECES: Performance, Information, Economics, Control, Efficiency, Service Gantt: bars on a calendar; progress, milestone (diamond) PERT/CPM: nodes + arrows; dependencies + critical path PERT duration: te = (o + 4m + p) / 6 deviation ≈ (p - o) / 6 Forward pass: ES = max(EF of predecessors), EF = ES + d Backward pass: LF = min(LS of successors), LS = LF - d Slack = LS - ES = LF - EF Critical path = longest path = tasks with slack 0 1 day late on the critical path → project 1 day late A task with slack can slip by its slack, then becomes critical Milestone: duration 0, important intermediate point