Select all correct options (you will receive points only for correct selections) that align with a logic/constraint (declarative) approach to the course-registration problem. Here is the recap: You are designing a course-registration checker. Students propose a set of courses, and the system must enforce: prerequisites (A must be taken before B) mutual exclusions (cannot take X and Y together) choose at least one of {M, N, P}                                                                                                        You want the system to either accept the plan or automatically find an alternative plan that satisfies all constraints. Which programming paradigm (or style) is the best conceptual fit for expressing this problem?多项选择题

A

Correctness mostly depends on remembering operator precedence rules in arithmetic expressions.

B

Backtracking/search is a natural execution strategy for finding a valid solution.

C

The core control structure is usually explicit loops that update mutable variables.

D

The program primarily describes constraints/rules; the runtime searches for assignments that satisfy them.

E

You can often write "what" properties must hold without prescribing "how" to iterate.

登录即可查看完整答案

我们收录了全球超50000道真实原题与详细解析,现在登录,立即获得答案。

更多留学生实用工具

加入我们,立即解锁 海量真题独家解析,让复习快人一步!