Welcome to AssignmentCache!

DAT305 Data Structures for Problem Solving

DAT305 Data Structures for Problem Solving
DAT305 covers Data Structures. Topics include data structures, recursion, analysis, sorting and searching (sequential and binary), tree and tree algorithms, graphs and graph algorithms, as related to organizational problem solving across industries.

6 Item(s)

per page

Grid  List 

Set Descending Direction
  1. DAT305 Week 3 Challenge Activity 1 Stack ADT

    DAT/305 Week 3 Challenge Activities 3.1.1: Stack ADT

    Regular Price: $5.00

    Special Price $3.00

    DAT/305 Week 3 Challenge Activities 3.1.1: Stack ADT

    CHALLENGE ACTIVITY 1

    Given numStack: 69,87 (top is 69)
    What is the stack after the following operations?
    Pop(numStack)
    Push(numStack, 92)
    Pop(numStack)
    Push(numStack, 77)

    After the above operations, what does GetLength(numStack) return?

    CHALLENGE ACTIVITY 2

    Given numStack: 11,71,12 top is 11)
    What does Peek(numStack) return?

    What is the stack after the following operations?
    Push(numStack, 34)
    Pop(numStack)
    Push(numStack, 73)
    Peek numStack)
    Peek/numStack)

    After the above operations, what does GetLength(numStack) return?


    CHALLENGE ACTIVITY 3

    Given numStack: 16.65 (top is 16)
    Pop(numStack)
    Pop(numStack)

    After the above operations, what does GetLength(numStack) return?

    After the above operations, what does isEmpty(numStack) return?

    Learn More
  2. DAT305 Week 3 Challenge Activities 1 Stacks using linked lists

    DAT/305 Week 3 Challenge Activities 3.2.1: Stacks using linked lists

    Regular Price: $5.00

    Special Price $3.00

    DAT/305 Week 3 Challenge Activities 3.2.1: Stacks using linked lists

    CHALLENGE ACTIVITY 1

    Given an empty stack numStack, what does the list head pointer point to? If the pointer is null, enter null.

    After the following operation, which node does the list head pointer point to?
    StackPush(numStack, 83)


    CHALLENGE ACTIVITY 2

    Given numStack: 54, 38, 25, 28 (top is 54)
    After the following operation: StackPush(numStack, 40)
    What node does newNode's next pointer point to? If the pointer is null, enter null.

    What node does the list's head pointer point to?


    CHALLENGE ACTIVITY 3

    Given numStack: 51 (top is 51)
    After the following operation: StackPop(numStack)
    What is returned?

    What node does the list's head pointer point to? If the pointer is null, enter null:

    Learn More
  3. DAT305 Week 3 Challenge Activities 1 Queue ADT

    DAT/305 Week 3 Challenge Activities 3.3.1: Queue ADT

    Regular Price: $5.00

    Special Price $4.00

    DAT/305 Week 3 Challenge Activities 3.3.1: Queue ADT

    CHALLENGE ACTIVITY 1

    Given numQueue: 75, 45
    What are the queue's contents after the following operations?
    Enqueue (numQueue, 80)
    Dequeue(numQueue)

    After the above operations, what does GetLength(numQueue) return?


    CHALLENGE ACTIVITY 2

    Given numQueue: 90, 60
    What does Peek(numQueue) return?

    What is the queue after the following operations?
    Peek(numQueue)
    Dequeue (numQueue)
    Peek(numQueue)
    Enqueue (numQueue, 90)

    After the above operations, what does GetLength(numqueue) return?


    CHALLENGE ACTIVITY 3

    Given numQueue: 73, 39
    Peek(numQueue)
    Dequeue (numqueue)
    After the above operations, what does GetLength(numQueue) return?

    After the above operations, what does IsEmpty(numQueue) return?


    CHALLENGE ACTIVITY 4

    Given numQueue is empty, what does the list head pointer point to?

    What does the list tail pointer point to?

    After the following operations:
    Enqueue (numQueue, 26)
    Enqueue (numQueue, 47)
    Enqueue (numQueue, 22)
    Dequeue (numQueue)

    What does the list head pointer point to?

    What does the list tail pointer point to?

    Learn More
  4. DAT305 Week 3 Challenge Activities 1 Queues using linked lists

    DAT/305 Week 3 Challenge Activities 3.4.1: Queues using linked lists

    Regular Price: $5.00

    Special Price $2.00

    DAT/305 Week 3 Challenge Activities 3.4.1: Queues using linked lists

    CHALLENGE ACTIVITY 1

    Given an empty queue numQueue, what does the list head pointer point to? If the pointer is null, enter null.

    What does the list tail pointer point to?

    After the following operations:
    QueueEnqueue(numqueue, 66)
    QueueEnqueue(numQueue, 93)
    QueueDequeue(numQueue)

    What does the list head pointer point to?

    What does the list tail pointer point to?


    CHALLENGE ACTIVITY 2

    Given numQueue: 78, 37, 47

    What does the list head pointer point to? If the pointer is null enter null.

    What does the list tail pointer point to?

    After the following operations:
    QueueEnqueue(numQueue, 60)
    QueueEnqueue(numqueue, 57)
    QueueDequeue(numQueue)
    QueueDequeue(numQueue)

    What does the list head pointer point to?

    What does the list tail pointer point to?

    Learn More
  5. DAT305 Week 3 Challenge Activities 1 Deque ADT

    DAT/305 Week 3 Challenge Activities 3.5.1: Deque ADT

    Regular Price: $5.00

    Special Price $3.00

    DAT/305 Week 3 Challenge Activities 3.5.1: Deque ADT

    CHALLENGE ACTIVITY 1

    Given an empty deque numDeque, what are the deque's contents after the following operations?
    PushBack(numDeque, 24)
    PushFront(numDeque, 49)
    PushBack(numDeque, 44)

    After the above operations, what does PeekFront(numDeque) return?

    After the above operations, what does PeekBack(numDeque) return?

    After the above operations, what does GetLength(numDeque) return?


    CHALLENGE ACTIVITY 2

    Given an empty deque numDeque, what are the deque's contents after the following operations?
    PushBack(numDeque, 95)
    PopFront(numDeque)
    PushFront(numDeque, 42)
    PushFront(numDeque, 25)
    PopBack(numDeque)

    After the above operations, what does GetLength(numDeque) return?


    CHALLENGE ACTIVITY 3

    Given numDeque: 19, 38
    PeekFront(numDeque)
    PopFront(numDeque)
    After the above operations, what does GetLength(numDeque) return?

    After the above operations, what does IsEmpty(numDeque) return?

    Learn More
  6. DAT305 Week 3 Challenge Activity 1 Hash tables with modulo hash function

    DAT/305 Week 3 Challenge Activities 3.6.1: Hash tables with modulo hash function

    Regular Price: $5.00

    Special Price $3.00

    DAT/305 Week 3 Challenge Activities 3.6.1: Hash tables with modulo hash function

    CHALLENGE ACTIVITY 1

    A hash table with non-negative integer keys has a modulo hash function of key % 20.

    Hash function index range: 0 to

    Item 128 will go in bucket


    CHALLENGE ACTIVITY 2

    An ordinary array contains items with keys: 30, 22, 6, 34, 2, 10,13
    A hash table has 15 buckets with hash function key % 15.
    The hash table contains the same items as the array.

    How many elements are checked when searching for each of the following items?


    CHALLENGE ACTIVITY 3

    An empty hash table hashTable has 5 buckets and a hash function of key % 5.
    The following operations are performed in order.
    Select which operations cause a collision.
    Hashinsert(hash Table, 2)
    Hashinsert(hashTable, 12)
    Hashinsert(hashTable, 0)
    Hashinsert(hashTable, 5)
    Hashinsert(hash Table, 15)

    Learn More

6 Item(s)

per page

Grid  List 

Set Descending Direction
[profiler]
Memory usage: real: 14942208, emalloc: 14511328
Code ProfilerTimeCntEmallocRealMem