Criminal Law video Discussion and response use this link if video not displayed in your browser) then respond to the question below
This week we learn that not only our actions can be considered criminal, but we can also commit crime when we fail to act. This brings up our question for this week:
1. If someone witnesses a crime in progress, and fails to intervene and/or report that crime, should their failure to stop the crime, or even report the crime, be a crime in itself? Why or why not?
2. Should the man in this video be held criminally responsible for not taking any action? Why or why not?
Don’t forget to use material to support your response. COMPONENT TASKS
RESPONSIBILITY
Music class
Music Data-file creation
User Interface
I/O functions
BST1 and BST2
Stack
Hash-Table
Special function
MM
KR
KR
JM
MM
QP
KR
SUBTASKS FROM USER-INTERFACE
UI
Add new data
Delete data
Find and Display
List data in hash sequence
List data in key sequence 1 and 2
Print indented Tree
Write back to file
Undo delete
Efficiency
Special function
Quit
To be called from UI menu
STATUS
Done
Done
BST
FILE I/O
MM
MM
MM ( for find by Title )
Hash
QP
QP
QP ( for find by ID )
QP
Other
Use stack-push() from UI
MM
MM
JM
MM ( insert back to BSTs )
QP ( inserted back to hashT)
QP
JM
Use stack-pop() from UI
KR to implement
Write-back to file
STATUS
CIS 22C – Data Structures
Team Project Variations
Project Option #1: BST, Hash Table, and Self-Adjusting Linked Lists
1. Solve collisions using linked list resolution.
2. A self-adjusting list is like a regular list, except that all insertions are performed at the
front, and when an element is accessed by a search, it is moved to the front of the list,
without changing the relative order of the other items. The elements with highest access
probability are expected to be close to the front.
3. Save data to file in hash table sequence.
4. Efficiency:
a. Load Factor
b. Longest Linked List
c. Average number of nodes in linked lists
Project Option #2: BST, Hash Table Quadratic Probe, and Stacks
1. The user can undo the delete in the reverse order of the delete sequence. When the user
selects Save to file, the undo stack is cleaned out (no undo possible unless more delete
occurs first). The head node will contain one more pointer: to the stack header, and one
more option needs to be added to the menu: Undo delete.
2. Collision resolution method: open addressing quadratic probe.
3. Save data to file in hash table sequence.
4. Efficiency:
a. Load Factor
b. Number of Collisions
c. Longest Collision Path
Project Option #3: BST, Hash Table Bucket Hashing, and Queues
1. One approach to handling collisions is to hash to buckets. A bucket is a structure that
accommodates multiple data occurrences (Bucket Hashing) In this case, the head node,
listHead, will contain one more field: bucket size (the number of records stored in a
bucket) and arySize represents the number of buckets. If you have to insert into a full
bucket, print a message (insert not possible at this time). Set bucket size to 3.
2. Save data to file using the breadth-first traversal of the BST (queue)
3. Efficiency:
a. Load Factor
b. Longest bucket
c. Number of Collisions
Project Option #4: BST, Hash Table, and Linked Lists
1.
2.
3.
4.
Solve collisions using linked list resolution.
The linked list data must be sorted.
Save data to file in hash table sequence.
Efficiency:
a. Load Factor
b. Longest Linked List
c. Average number of nodes in linked lists 8
Project Option #5: BST, Hash Table Variation of Linear Probe, and
Stacks
1. The user can undo the delete in the reverse order of the delete sequence. When the user
selects Save to file, the undo stack is cleaned out (no undo possible unless more delete
occurs first). The head node will contain one more pointer: to the stack header, and one
more option needs to be added to the menu: Undo delete.
2. Collision resolution method: open addressing variation of linear probe: when
inserting, add 1 subtract 2, add 3, subtract 4, until we locate an empty element.
3. Save data to file in hash table sequence.
4. Efficiency:
a. Load Factor
b. Number of Collisions
c. Longest Collision Path 9
Project Option #6: BST, Hash Table Pseudorandom, and Stacks
1. The user can undo the delete in the reverse order of the delete sequence. When the user
selects Save to file, the undo stack is cleaned out (no undo possible unless more delete
occurs first). The head node will contain one more pointer: to the stack header, and one
more option needs to be added to the menu: Undo delete.
2. Collision resolution method: open addressing pseudorandom.
3. Save data to file in hash table sequence.
4. Efficiency:
a. Load Factor
b. Number of Collisions
c. Longest Collision Path
Project Option #7: BST, Hash Table Key Offset, and Stacks
1. The user can undo the delete in the reverse order of the delete sequence.
When the user selects Save to file, the undo stack is cleaned out (no undo
possible unless more delete occurs first). The head node will contain one
more pointer: to the stack header, and one more option needs to be added to
the menu: Undo delete.
2. Collision resolution method: open addressing key offset.
3. Save data to file in hash table sequence.
4. Efficiency:
a. Load Factor
b. Number of Collisions
c. Longest Collision Path
Purchase answer to see full
attachment
Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.
You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.
Each paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.
Thanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.