How can monitoring support evaluations in criminal justice policies?
In: Psychology
In Python For this programming assignment, we are going to investigate how much "work" different sorting routines do, based on the input size and order of the data. We will record the work done by writing output CSV (comma separated value) files and creating various plots using matplotlib. Note: for this assignment, do not use Jupyter Notebook to code your solution. Use standard .py files and save your output to .csv and .png files (see the program details below for more on program output). Program Details: Data Structure Implement a doubly linked circular linked list of Node objects called CircularDoublyLinkedList. The data of each Node in the list is an integer. You will collect measurements for: An already sorted linked list An already sorted linked list in descending order A linked list containing random data List Size Configurations Generate each of the above linked lists with the following number of nodes: 500 1000 5000 10000 (more values if you wish) Note: Make copies of the original lists (as necessary) and pass the copies to each sorting routine so each routine is operating on the same data! This is important in order to compare the results of the different algorithms. Sorting Routines Implement 3 of the following linked list sorting routines (implemented as a function or as a method of your CircularDoublyLinkedList class): Choose 2 from the first 4 and 1 from the last 2 Selection sort Early exit bubble sort (stops when the list is sorted) Insertion sort Shell sort Merge sort Quick sort Data to Collect For each sorting routine above, create a pandas DataFrame with rows for each list size configuration and columns for each metric to collect. The metrics to collect include the algorithm's execution time using timeit and counts for the following operations: Number of data comparisons Number of loop control comparisons Number of assignment operations involving data Number of assignment operations involving loop control "Other" operations (operations that don't fall into one of the above categories) Total number of operations (sum of the above) Note: Be sure to comment everything you count in your code. Pictorially, here is an example DataFrame for a sorting routine: List configuration Seconds # Data # Loop # Data assignments # Loop assignments # Other Total Sorted N=500 Sorted N=1000 Sorted N=5000 Sorted N=10000 Descending sorted N=500 Descending sorted N=1000 Descending sorted N=5000 Descending sorted N=10000 Random N=500 Random N=1000 Random N=5000 Random N=10000 Program Output CSV Files Write the contents of each sorting routine DataFrame to a CSV file with a filename of the form _sort_results.csv. For example, bubble_sort_results.csv. See the function to_csv() in the pandas library for a straightforward way to do this! In total, your program should output 6 csv files, one for each sorting routine. Plots to Generate For each of the three list configurations (sorted, descending sorted, random), create two plots with list size on the x-axis (i.e. 500, 1000, 5000, 10000) and the following on the y-axis: Plot 1: running time Plot 2: total operation count Each plot should have a separate curve for each sorting routine. For example (example purposes only!!)
In: Computer Science
Frederick and Sons is a small company that makes faucets rings. They have experienced a larger than normal bad debts due to the slowdown in the economy. Koehler Corporation is a multimillion-dollar Corporation that makes faucets and other plumber supplies is also experiencing bad debt losses. What method would each company use when writing off customers’ accounts unable to pay and why? Give an entry for each when actually writing off a customer’s account.
In: Accounting
Select all that hold true about Bloom Filters:
Select one or more:
A. Bloom Filter has a predictable false positive rate. (Incorrect choices are penalized)
B. The total storage required for a Bloom Filter is fixed to be mm bits, and this won't increase regardless of the number of values stored.
C. Each search operation can be processed in the order
of O(n×k)O(n×k) by a Bloom Filter with kk hash functions
that already added nn values.
D. Each search or insert operation only requires O(k)O(k) operations by a Bloom Filter with kk hash functions and the cost does not depend on either the number of bits used by the Bloom Filter or nn, the number of values already added.
E. While the size of the bit array used by the Bloom Filter is constant, it may need to be quite large to reduce the false positive rate.
F. The Bloom Filter supports the following operations: add/insert the element, search the element, and remove the element.
G. While risking false positives, Bloom Filters have a strong space advantage over other data structures for representing sets, such as self-balancing binary search trees, tries, has tables, simple arrays or linked lists.
H. The Bloom Filter also stores the data items themselves that could be retrieved in O(k)O(k) time
In: Computer Science
Instructions
Choose a product/service (not the same one you are using for the final project (marketing plan). Answer the following questions:
(For all dropbox assignments, remember to reference at least 2 sources; one must be the textbook plus one from a website, video, or other source. Use quotes for direct material taken and cite even if paraphrasing. )
In: Operations Management
What behaviors do Martin Luther king, Malcolm X and Nelson Mandela employ that make them competent and why?
Which of these could you adopt, and how would that help you to reach your communication goals more effectively?
In: Psychology
35. Which of these is an open source operating system?
A.Open Office
B.Windows 10
C.Firefox
D.Linux
E.iOS
36.What happens when the tables are not normalized?
A.Nothing is affected.
B.The performance of querying tables is enhanced.
C.Taking a back-up of data becomes easy.
D.There is a data integrity problem.
E.Less number of records are loaded in tables.
In: Computer Science
In: Biology
Write an assembly code in MIPS program that can read 3 numbers from the user and print the following: a. The summation b. The average c. The minimum d. The maximum e. Print the values between the minimum and maximum f. Write comments to explain each line in your code -look at Fibonacci code- (no comments mean zero for the assignment )
use MARS MIPS .
In: Computer Science
Textbook: Remarkable Services
Chapter 9
Define the terms below:
assigned seating
banquet event order (BEO)
banquets
buyout
cash bar
consumption bar
general seating
head table
interactive stations
open bar
platter service
presetting
select menu
special event
In: Operations Management
In: Computer Science
What is the value per share be of a company with the following dividends?
Next years Dividend is expected to be $1.40
Expect Div Growth rates
13.40%
12.70%
10.80%
9.65%
7.70%
ROE = 13.47%
Plowback Rate= 61%
US T-BILL = 1.15%
BETA = 1.07
expect ret in Mkt = 10.83%
Please compute with excel
In: Finance
A 45.00 -mL sample contains
0.754 g of
KHC8H4O4, known as
KHP . This sample is used to standardize an NaOH solution.
At the equivalence point, 43.30 mL of NaOH have
been added.
Ka(
HC8H4O4-)
= 3.9E-6
a) What was the concentration of the NaOH?
b) What is the pH at the equivalence point?
In: Chemistry
China is currently rising and is slowly become a world power.
My question is that is there anything that could hold back China's rise?
In: Economics
Various factors or forces impact a company’s decision to go into a foreign market and affect the outcome of that decision. If a country or market has several factors in common with the original market, or with the other markets selected when choosing several markets, it will be easier to enter that market.
In: Operations Management