WGU C949 Data Structures and Algorithms
Study online at https://quizlet.com/_98c6dq
1. A functions whose cost scales linearly O(n)
with the size of the input
2. Iterating over a collection of data once O(n)
often indicates an ______ algorithm. (al-
phabet for-loop example)
3. A functions whose cost scales logarith- O(log n)
mically with the input size
4. Which type of function works by break- O(log n)
ing down large problem into smaller
and smaller chunks?
5. As the size of the input grows the cost of O(log n)
the algorithm does not increase at the
same rate. The overall cost of perform-
ing an operation on 1,000,000 items is
only twice that of performing the oper-
ation on 1,000 items.
6. A function that exhibits quadratic O(n^2)
growth relative to the input size
7. An example of this type of function is O(n^2)
doubly nested loop
8. Which type of function gets really ex- O(n^2)
pensive really quickly?
9. A function that has two inputs that con- O(nm)
tribute to growth
, WGU C949 Data Structures and Algorithms
Study online at https://quizlet.com/_98c6dq
10. An example of this type of function is O(nm)
when there is a nested loop that iterates
of two distinct collections of data
11. Are Big-O cases used in the best or Worst
worst situations?
12. Which statement is static? readonly Contact contacts = new Contacts[100];
readonly Contact[] contacts = new Con-
tact[];
readonly Contact contacts = new Con-
tacts[100];
13. A container where data is stored in Linked List
nodes consisting of a single data item
and a reference to the next node
14. A ______ is a container where nodes of Linked List
data are linked together into a list
15. Linking together complex nodes into a Linked List
single structure
16. Each link in a chain for a linked lists is node
called a ______
17. What two things do nodes contain? 1. the value
2. reference to next item in the list
18. Give a coded example on how to create Node head = new Node(1);
a 3 chained linked list of nodes.
head.Next = new Node(2);
Study online at https://quizlet.com/_98c6dq
1. A functions whose cost scales linearly O(n)
with the size of the input
2. Iterating over a collection of data once O(n)
often indicates an ______ algorithm. (al-
phabet for-loop example)
3. A functions whose cost scales logarith- O(log n)
mically with the input size
4. Which type of function works by break- O(log n)
ing down large problem into smaller
and smaller chunks?
5. As the size of the input grows the cost of O(log n)
the algorithm does not increase at the
same rate. The overall cost of perform-
ing an operation on 1,000,000 items is
only twice that of performing the oper-
ation on 1,000 items.
6. A function that exhibits quadratic O(n^2)
growth relative to the input size
7. An example of this type of function is O(n^2)
doubly nested loop
8. Which type of function gets really ex- O(n^2)
pensive really quickly?
9. A function that has two inputs that con- O(nm)
tribute to growth
, WGU C949 Data Structures and Algorithms
Study online at https://quizlet.com/_98c6dq
10. An example of this type of function is O(nm)
when there is a nested loop that iterates
of two distinct collections of data
11. Are Big-O cases used in the best or Worst
worst situations?
12. Which statement is static? readonly Contact contacts = new Contacts[100];
readonly Contact[] contacts = new Con-
tact[];
readonly Contact contacts = new Con-
tacts[100];
13. A container where data is stored in Linked List
nodes consisting of a single data item
and a reference to the next node
14. A ______ is a container where nodes of Linked List
data are linked together into a list
15. Linking together complex nodes into a Linked List
single structure
16. Each link in a chain for a linked lists is node
called a ______
17. What two things do nodes contain? 1. the value
2. reference to next item in the list
18. Give a coded example on how to create Node head = new Node(1);
a 3 chained linked list of nodes.
head.Next = new Node(2);