Input | Output |
---|---|
<image 1> What does the above NFA recognize. Write your answer in regular expression. (A) aa*|bb* (B) a*|bb* (C) aa*|b* (D) a*|b* Answer with the option's letter from the given choices directly. No punctuation. | (M) aM*|bbP Difficulty: Medium Subfield: Compiler Principle |
What kind of matrix traversal is <image 1>? (A) Normal traversal of the matrix. (B) Row-wise traversal of the matrix. (C) Column-wise traversal of the matrix. (D) spiral traversal of the matrix. Answer with the option's letter from the given choices directly. No punctuation. | (6) The matrix traversal that uses a spiral pattern, spiraling upwards and covering a maximum number of elements per row or column is: (D) spiral traversal of the matrix. The spiral pattern covers a greater number of elements per row or column as compared to the other traversation methods. Difficulty: Easy Subfield: Data Structure and Algorithm |
Consider the following graph:Which one of the following cannot be the sequence of edges added, in that order, to a minimum spanning tree using Kruskal's algorithm?<image 1> (A) (a-b),(d-f),(b-f),(d-c),(d-e) (B) (a-b),(d-f),(d-c),(b-f),(d-e) (C) (d-f),(a-b),(d-c),(b-f),(d-e) (D) (d-f),(a-b),(b-f),(d-e),(d-c) Answer with the option's letter from the given choices directly. No punctuation. | (B) Difficulty: Hard Subfield: Data Structure and Algorithm Explanation: The edge (d-e) cannot be considered before (d-c) in Kruskal's minimum spanning tree algorithm because Kruskal's algorithm picks the edge with minimum weight from the current set of edges at each step. |
<image 1> What does this structure mean? (A) s (B) s+ (C) s* (D) ss Answer with the option's letter from the given choices directly. No punctuation. | (D) ss Difficulty: Easy Subfield: Compiler Principle |
What type of relationship is WORKS_ON in <image 1>? (A) 1:1 (B) 1:N (C) N:1 (D) N:M (E) None of the other answers. Answer with the option's letter from the given choices directly. No punctuation. | D) N:M Difficulty: Easy Subfield: Database |
Which schedule is an equivalent serial schedule for the precendence graph in <image 1>? (A) T3 -> T1 -> T2 (B) T2 -> T1 -> T3 (C) T1 -> T2 -> T3 (D) There are no serial schedules for the graph. Answer with the option's letter from the given choices directly. No punctuation. | (B) T2 -> T1 -> T3 Difficulty: Medium Subfield: Operating System |
Suppose we have a training set with m=3 examples,plotted below.Our hypothes is representation is , with parameter . The cost function is = |