A planar graph can be embedded in a plane such that no edges intersect. It is a key concept in graph theory, useful in applications like map coloring and circuit design.
Which of the following is true about a logic gate?
A Mathematical operation
B Performs logical functions
C Generates random outputs
D Models physical processes
Logic gates are basic building blocks of digital circuits. They perform logical operations such as AND, OR, NOT, and XOR, which are essential for creating digital systems and computing operations.
What is the output of an AND gate when both inputs are 1?
A 0
B 1
C Undefined
D 2
An AND gate outputs 1 only when both of its inputs are 1. If either input is 0, the output will be 0. This gate is essential for performing logical multiplication in circuits.
What is the primary objective of combinatorial optimization?
A Minimize costs
B Maximize profits
C Find the optimal solution for a problem
D Solve equations
Combinatorial optimization aims to find the best solution from a finite set of possible solutions, often focusing on problems involving the arrangement of objects to minimize or maximize a given function.
What is the purpose of a Karnaugh map in Boolean algebra?
A Simplify Boolean expressions
B Solve linear equations
C Draw truth tables
D Perform logical operations
A Karnaugh map is a visual tool used to simplify Boolean expressions. It helps reduce the complexity of logic circuits by minimizing the number of terms in a Boolean equation.
Which of the following is an example of a combinatorial optimization problem?
A Sorting a list
B Traveling salesman problem
C Solving linear equations
D Matrix multiplication
The traveling salesman problem is a classic example of combinatorial optimization. It involves finding the shortest possible route that visits each city exactly once and returns to the origin, optimizing the total travel distance.
In graph theory, what is the chromatic number of a graph?
A Number of edges
B Number of vertices
C Minimum number of colors needed for coloring the graph
D Degree of the graph
The chromatic number of a graph is the minimum number of colors required to color the vertices of the graph such that no two adjacent vertices share the same color. It is used in scheduling and coloring problems.
What is a binary tree in computer science?
A A tree with two branches
B A tree with no nodes
C A tree with one root and up to two children per node
D A directed acyclic graph
A binary tree is a data structure where each node has at most two children, typically referred to as the left and right children. It is widely used in searching, sorting, and decision making algorithms.
What is a convex polygon?
A A polygon with all interior angles less than 180°
B A polygon with all sides equal
C A polygon with no edges
D A polygon with one interior angle greater than 180°
A convex polygon is one in which all interior angles are less than 180° and all vertices point outward. Any line segment joining two points in the polygon lies inside or on the boundary of the polygon.
What does De Morgan’s law state about Boolean expressions?
A Describes properties of logic gates
B Relates AND and OR operations to NOT
C Simplifies truth tables
D Converts expressions to standard form
De Morgan’s law states that the negation of a conjunction is the disjunction of the negations, and the negation of a disjunction is the conjunction of the negations. This simplifies logical expressions and helps in circuit design.
In decision theory, what is a decision tree used for?
A Visualizing algorithms
B Evaluating the outcomes of different decisions
C Calculating probabilities
D Mapping functions
A decision tree is a tool used in decision theory to visually represent decisions and their possible consequences. It helps evaluate different strategies and their potential outcomes based on probabilities and costs.
What is the main feature of a planar graph?
A All edges intersect
B It can be drawn without edge crossings
C It has no vertices
D It contains no edges
A planar graph is one that can be drawn on a plane without any of its edges crossing each other. This feature is important in graph theory and applications such as circuit layout and map coloring.
What is a non directed graph?
A A graph with directed edges
B A graph without any cycles
C A graph where edges have no direction
D A graph with no vertices
A non directed graph is a graph in which the edges do not have a direction. The relationship between two vertices is mutual, meaning the edge between them can be traversed in either direction.
What is a Hamiltonian path in a graph?
A A path that visits every edge
B A path that visits every vertex exactly once
C A cycle that visits all vertices
D A cycle with a maximum number of edges
A Hamiltonian path is a path in a graph that visits every vertex exactly once. It is a key concept in graph theory, useful for problems such as the traveling salesman problem and network routing.
What is an XOR gate in Boolean logic?
A AND of inputs
B OR of inputs
C Exclusive OR, true if only one input is true
D NOT of inputs
An XOR gate outputs true if and only if one of its inputs is true, but not both. It is used in digital circuits where exclusive conditions are required, such as in error detection and correction.