CSC 351 - Prolog Flashcards

0
Q

What is a proposition?

A

Logical statement that may or may not be true.

Can be represented as a fact (assumed to be true) or query (truth is to be determined)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
1
Q

Logic Languages?

A
  • expressed in a form of symbolic logic
  • uses a logical inferencing process to produce results
  • declarative
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is symbolic logic

A

Logic which can be used for the basic needs of formal logic

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Object representation

A

Objects in prepositions are represented by either constants or variables

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is a compound term?

A

One element of a mathematical relation, written like a function

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is resolution?

A

Inference principle that allows inferred propositions to be computed from given propositions

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is unification?

A

Finding values for variables in prepositions that allows matching process to succeed

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is instantiation?

A

Assigning temporary values to variables to allow unification to succeed

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is a prolog term?

A

A constant, variable or structure

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is a prolog constant?

A

An atom or an integer

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is a prolog atom?

A

Symbolic value, can be a string of letters, digits and underscores beginning with a lowercase letter

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is a prolog variable?

A

Any string of letters, digits and underscores beginning with an uppercase

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is a prolog instantiation?

A

Binding of a variable to a value

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is a prolog structure?

A

Represents atomic proposition

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Inferencing process of prolog?

A

To prove a query (goal) is true, must find a chain of inference rules and/or facts

Prolog uses backward chaining - begin with goal and attempt to find sequence that leads to set of facts
Prolog uses depth-first search

How well did you know this?
1
Not at all
2
3
4
5
Perfectly