Developing a constrained selection procedure

Mark Yourself Question

  1. Grab a piece of paper and try this problem yourself.
  2. When you're done, check the "I have answered this question" box below.
  3. View the solution and report whether you got it right or wrong.

An engineering selection tool receives a finite list of operating modes. Each mode has a unique positive integer identifier, airflow, electrical power, and predicted motor temperature. Treat all supplied values as exact model outputs. The input rows may arrive in any order.


A mode is feasible when airflow is at least 0.050 m3/s0.050\ \text{m}^3/\text{s} and motor temperature is at most 70 ∘C70\ ^\circ\text{C}. Among feasible modes, select the one with the smallest electrical power. If powers tie, select the smaller identifier. Return NONE if no mode is feasible.


Mode identifier

Airflow (m3/s\text{m}^3/\text{s})

Power (kW\text{kW})

Temperature (∘C^\circ\text{C})

1

0.040

1.8

60

2

0.055

2.7

69

3

0.060

2.4

74

4

0.052

2.5

67

5

0.058

2.5

68


Describe a procedure that works for any permitted input list, apply it to this table, and explain why it terminates and returns the required mode. Give one additional test for inclusive boundaries and one additional test for the NONE outcome. No programming language is required.

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

More Algorithm Development Questions: