CSC 216 Ch 5-9 Key Concepts

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/46

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

47 Terms

1
New cards

Queue elements are processed in a _________ Manner.

First in first out

2
New cards

A _________ is a convenient collection for storing a repeating code key.

queue

3
New cards

Simulations are often implemented using __________ to represent waiting lines.

queues

4
New cards

A linked implementation of a queue is facilitated by _________ to the first and last elements of the linked list. 

references 

5
New cards

The enqueue and dequeue operations work on __________ ends of the collection.

opposite

6
New cards

Because queue operations modify both ends of the collection, fixing one at the index 0 requires the elements be __________.

shifted

7
New cards

The ____________ if elements in a noncircular array implementation creates an O(n) complexity.

shifting

8
New cards

Treating arrays as __________ eliminates the need to shift elements in an array queue implementation.

circular

9
New cards

List collections can be categorized as ordered, unordered, or _________.

indexed

10
New cards

The elements of an ordered list have an ___________ relationship defining their order.

inherent

11
New cards

The elements of an ________ list are kept in whatever order the client chooses.

unordered

12
New cards

An indexed list maintains a __________ numeric index range for its elements.

contiguous

13
New cards

The Java API does not provide a _______ that implements an ordered list.

class

14
New cards

Many common operations can be defined for all ________ types. The differences between them stem from how elements are added.

list

15
New cards

Interfaces can be used to ________ other interfaces. The child interface contains all abstract methods of the parent.

derive

16
New cards

An interface name can be used to ____________ an object reference variable. An interface reference can refer to any object of any class that implements the interface. 

declare

17
New cards

Interfaces enable us to make ___________ references in which the method that is invoked is based on the particular object being referenced at the time.

polymorphic

18
New cards

The Josephus problem is a classic computing problem that appropriately solved with ________ lists.

indexed

19
New cards

Only Comparable objects can be ________ in an ordered list.

stored

20
New cards

An iterator is an object that provides a way to ________ each elements in a collection in turn. 

access

21
New cards

A collection is often defined as ___________. which means it provides an Iterator when needed.

Iterable

22
New cards

The optional _______ method of an iterator makes it possible to remove an element without having to traverse the collection again.

remove

23
New cards

Most iterators are __________ and will throw an exception if the collection is modified while an iterator is active.

fail-fast

24
New cards

You should make no assumptions about the order in which an __________ delivers elements unless it is explicitly stated.

iterator

25
New cards

An iterator class is often implemented as an _______ class of the collection to where it belongs.

inner

26
New cards

An iterator checks the __________ count to ensure that it stays consistent with the modification count from the collection when it was created.

modification

27
New cards

Recursion is a programming technique in which a method calls ________.

itself

28
New cards

Any recursive definition must have a ___________ part, called the base case, that permits the recursion to eventually end.

nonrecursive

29
New cards

Mathematical problems and formulas are of expressed _________.

recursively

30
New cards

Each recursive call to a method creates new ___________________________.

local variables and parameters.

31
New cards

A careful trace of _________ processing can provide insight into the way it is used to solve a problem.

recursive

32
New cards

Recursion is the most elegant and appropriate way to solve some problems, but for others it is less __________ than an iterative solution. 

intuitive

33
New cards

The order of a recursive algorithm can be determined using techniques similar to those used in analyzing __________ processing.

iterative

34
New cards

The Towers of Hanoi solution has ____________ complexity, which is very inefficient, yet is incredibly short and elegant.

exponential

35
New cards

What is the process of finding a designated target within a group of items or determining that the target doesn’t exist?

Searching

36
New cards

An efficient search ____________ the number of comparisons made.

minimizes

37
New cards

A ___________ is made static by using the static modifier in the method declaration. 

method

38
New cards

A binary search capitalizes on the fact that the search pool is ________.

sorted

39
New cards

A binary search _____________ half of the viable candidates with each comparison.

eliminates

40
New cards

A binary search has ___________ ____________, which makes it very efficient for a large search pool.

logarithmic complexity

41
New cards

__________ is the process of arranging a list of items into a defined order based on some criterion. 

Sorting

42
New cards

The selection sort algorithm sorts a list of values by ________ putting a particular value into its final, sorted position.

repetitively

43
New cards

The _________ sort algorithm sorts a list of values by repetitively putting a particular value into a subset of the list that has already been sorted.

insertion

44
New cards

The _________ sort algorithm sorts a list by repeatedly comparing neighboring elements and swapping them if necessary.

bubble

45
New cards

The __________ sort algorithm sorts a list by partitioning the list and then recursively sorting the two partitions. 

quick 

46
New cards

The _________ sort algorithm sorts a list by partitioning the list and then recursively sorting the two partitions.

merge

47
New cards

A ________ sort is inherently based on queue processing.

radix