3. Key characteristics of Procedural Programming

3.4. The grandparent relationship is inferred.

Strengths

Ideal for AI and rule-based systems.

Backtracking simplifies complex logic.

Declarative and concise.

Weaknesses

Inefficient for large datasets.

Non-deterministic behavior.

Niche usage.

Use Cases

Expert systems.

Knowledge bases.

Constraint solving.

Languages

Prolog, Datalog, Java (with tuProlog).