Skip to content

Cost Efficiency

In parallel algorithms, cost efficiency means processor count times runtime matches the best relevant sequential work up to a constant factor.

Version
v1 · 2026-10-03 · History
Domain-specific #
13100
Domain group
Applied Sciences & Engineering
Origin domain
Computer Science & Software Engineering
Subdomain
Parallel Algorithms → Computer Science & Software Engineering
Aliases
Parallel Cost Optimality

Core Idea

In parallel algorithms, cost is \(pT_p\): processors allocated times parallel runtime. A parallel method is cost efficient when this product matches the best relevant sequential time for the same task up to a constant factor. Low runtime alone does not establish this; it may be bought with excessive processors. Constant asymptotic efficiency is the equivalent test.[1]

How would you explain it like I'm…

No Wasted Helpers

Imagine lots of friends helping you clean your room so it gets done fast. But if each friend works the whole time, you add up everybody's minutes. If that total is way more than one person cleaning alone would take, the helpers wasted effort. Being cost efficient means the total is about the same as doing it alone.

Processors Times Time

Some computers use many processors working at the same time to solve one problem. To measure cost, you multiply the number of processors by how long they run. A method has good Cost Efficiency when that total stays about the same size as the time the best one-processor method needs. Being fast isn't enough. If you use a huge number of processors to save a little time, you wasted lots of total work. For example, adding up a long list can be split into chunks for each processor, and then the chunk totals are combined, without wasting work.

Cost-Optimal Parallel Work

In parallel computing, the cost of an algorithm is C = p × T_p, where p is the number of processors and T_p is the parallel running time. An algorithm is cost efficient, or cost optimal, if this cost grows no faster than the best sequential running time T_s for the same problem. Since any correct method must do at least that much work, the goal is cost proportional to T_s. This catches a trick: an algorithm can have a small running time while burning far more total processor-time. Odd–even transposition sort uses n processors for n rounds, so its cost is about n², while good sequential sorting takes about n log n. Summing n numbers in blocks and then combining the partial sums can keep the cost about n, with a suitable processor count.

 

Parallel-algorithm analysis conventionally defines cost as C_p = pT_p, the processor count times the parallel running time. A parallel algorithm is cost efficient, or cost optimal, if pT_p = Θ(T_s), where T_s is the best relevant sequential time for the same problem under a declared machine model. This is equivalent to holding efficiency at a constant. The criterion separates real parallel gains from deceptive speedups that buy low T_p with excessive total processor-time. Odd–even transposition sort on a line of n processors sorts n keys in n rounds, which beats some serial methods in time. However, its cost is Θ(n²) against Θ(n log n) for sequential comparison sorting, so it is not cost optimal. Summation works differently. Each processor sums a block, then the partial sums are reduced. With a suitable processor count in an ideal unit-cost model, this keeps cost Θ(n), matching the sequential sum.

Scope of Application

For an ideal blockwise sum of \(n\) values, \(p\) processors do \(\Theta(n/p)\) local additions and combine partial sums in \(\Theta(\log p)\) tree rounds. Thus \(T_p=\Theta(n/p+\log p)\) and cost \(\Theta(n+p\log p)\). Choosing \(p\approx n/\log n\) gives cost \(\Theta(n)\), matching a sequential sum; choosing \(p=n\) gives \(\Theta(n\log n)\) cost. This is an ideal-model derivation, not a network benchmark.[2]

Clarity

Odd–even transposition sorts \(n\) keys on an \(n\)-processor line in \(n\) rounds, so its cost is order \(n^2\). That exceeds the order \(n\log n\) sequential comparison-sort benchmark. It is parallel and has linear latency but is not cost optimal. Do not compare it with a deliberately slow serial bubble sort.[3]

Manages Complexity

The product \(pT_p\) exposes waste hidden by a time-only claim. It does not include every practical expense: topology, communication, cache behavior, energy and dollar cost need separate analysis. “Cost” here is a formal processor-time measure, not procurement cost.[2]

Abstract Reasoning

If \(T_s=\Theta(n)\), \(p=n\) and \(T_p=\Theta(\log n)\), then efficiency \(T_s/(pT_p)=\Theta(1/\log n)\) falls with scale. Reducing \(p\) can restore constant efficiency only after recalculating how local work and critical path change; it cannot be done by reducing \(p\) in the formula while holding runtime fictitiously fixed.[2]

Knowledge Transfer

The test transfers between parallel algorithms with valid same-problem sequential baselines and declared machine models. The live Ratio prime is the composition/presupposes prerequisite for comparing processor-work with sequential work; the verdict is not itself a quotient. The live Efficiency prime's undominated-frontier criterion is not guaranteed by fixed-factor asymptotic cost optimality. This named entry remains specific to parallel processor-time and does not mean energy- or dollar-efficiency.

Relationships to Other Abstractions

Local relationship map for Cost EfficiencyParents appear above the current abstraction, mutual partners to the right, and children below. Node labels state whether each abstraction is prime or domain-specific; colors identify relation types.Cost EfficiencyDOMAINPrime abstraction: Ratio — presupposesRatioPRIME

Current abstraction Cost Efficiency Domain-specific

Parents (1) — outgoing typed relations

  • Cost Efficiency presupposes Ratio Prime

    Cost efficiency presupposes a work-comparison ratio.

Hierarchy path (1) — routes to 1 parentless root

Neighborhood in Abstraction Space

Cost Efficiency sits in a sparse region of the domain-specific corpus (62nd percentile for distinctiveness): few abstractions share its structure, so a faithful description tends to retrieve it precisely.

Family — Unclustered & Miscellaneous (3155 abstractions)

Nearest neighbors

Computed from structural-signature embeddings · 2026-11-14

References

[1] Imperial College Parallel Algorithms lecture, p. 50/65. registry ↩

[2] MIT Parallel Algorithms Notes #32, work/depth and simulation. registry ↩a ↩b ↩c

[3] Wisconsin mesh-sorting notes, odd–even transposition cost. registry ↩