Venn Diagram
It is much easier to use Venn Diagrams to proof the DeMorgan's Law. Please briefly explain Venn diagrams and Sets.
In: Computer Science
[1] Briefly, what is the difference between:
1- Buffering & Spooling.
2- Synchronous & Asynchronous I/O.
3- CPU-bound & I/O-bound jobs.
4- Multiprogramming & Timesharing.
5- Logical & Physical addresses.
6- User & Monitor modes in Operating System.
[2] (i) Define Timesharing.
(ii) In a one processor system, there is an interrupt clock which is set to a “time slice Q”, that is, every Q an interrupt occurs to stop the process. There is only one I/O device in the system which is interrupted when the process needs an I/O. There are 3 processes A, B, C.
Process A executes an I/O interrupt every T units of time.
Process B executes an I/O interrupt every 2T units of time.
Process C executes an I/O interrupt every 3T units of time.
(a) Which of the above processes will benefit the most and which is not when Q = T.
Explain your answer
(b) Which of the above processes will benefit the most and which is not when Q = 2T.
Explain your answer
(a) Which of the above processes will benefit the most and which is not when Q = 3T.
Explain your answer
What is the best value should Q takes for good performance ? explain your answer in full.
In: Computer Science
CAN I HAVE A 200 WORD EXPLANATION FOR THE FOLLOWING QUESTION.
Analyse the security of Lamport’s OLP algorithm with the properties of hash function
In: Computer Science
You have been asked to prepare an Issue Specific Security Policy (ISSP) on email, instant messaging and other electronic communications tools. When preparing this policy outline two elements of the policy you must consider and specifically address?
In: Computer Science
Great Food Restaurants (GFR), is a national chain of restaurants with locations in all 50 states. The GFR relational database consists of nine tables as shown below. Note the following information about GFR and its database:
|
RestNum |
Address |
City |
State |
Size |
Capacity |
AnnualSales |
RESTAURANT
|
SuppName |
City |
State |
Phone |
YearFounded |
SUPPLIER
|
RestNum |
SuppName |
Food Type |
Date |
Cost |
FOODDELIVERY
|
CustNum |
Name |
CellPhone |
City |
State |
CUSTOMER
|
RestNum |
CustNum |
Date |
Bill |
VISIT
|
EmpNum |
EmpName |
YearHired |
JobTitle |
Salary |
RestNum |
EMPLOYEE
|
State |
Region |
InspectionOfficePhone |
InspectionCommissionerName |
STATE
|
State |
InspectorNum |
InspectorName |
InspectorEmail |
INSPECTOR
|
RestNum |
State |
InspectorNum |
Date |
Score |
INSPECTION
There are 6,000 records in the RESTAURANT table.
There are 200 records in the SUPPLIER table.
There are 1.5 million records in the FOODDELIVERY table.
There are 450,000 records in the CUSTOMER table.
There are 15 million records in the VISIT table.
There are 500,000 records in the EMPLOYEE table.
There are 50 records in the STATE table.
There are 300 records in the INSPECTOR table.
There are 98,000 records in the INSPECTION table.
Questions
1. What would you do to improve the performance of queries to find a customer by name or would you do nothing? Why?
2. What would you do to improve the performance of queries to find a supplier by phone number or would you do nothing? Why?
3. What would you do to improve the performance of queries requiring a list of the complete records of every GFR restaurant in Tennessee together with a list of their employees, including employee number, name, and salary or would you do nothing? Why?
4. What would you do to improve the performance of a query that seeks the salary of the highest paid employee of any GFR restaurant in Tennessee or would you do nothing? Why?
In: Computer Science
Write a python or java code which can calculate the Shapely-Shubik and Banzhaf indices to determine which state in America has the most power in the primary election.
In: Computer Science
Python: Write a function named power() that calculates rootpow recursively. It receives two arguments root (float) and pow (int) > = 1, and it returns the result root raised to power pow. The recursion of the power function is defined as: Base case: rootpow = root, if pow = 1 Recursive case: rootpow = root* rootpow-1 , otherwise. b) Develop a greatestC( ) function that determines the greatest common divisor of two integer numbers. Test greatestC() in a simple main program on the following numbers: 12 and 24; 50 and 10; 33649 and 17043. The recursive definition of the gcd function is as follows: Base case: greatestC(x, y) = x if y = 0 Recursive case: greatestC(x, y) = greatestC(x, x % y) otherwise, where % is the modulus operator.
In: Computer Science
the best document to use to obtain information in order to make a decision on a system. As a systems analyst, explain to management the two types of documents available and what they are used for
In: Computer Science
In: Computer Science
Using one of the referenced website articles or an article of your choice, to discuss how to reduce the cost of paging to disk because frequent paging is prohibitive.
In: Computer Science
Question 1: Discuss the concept of lazy evaluation and why this is a powerful advantage of functional programs.
Question 2: Describe and Discuss the concepts of Higher order functions and currying in a functional programming language such as Haskell (or Standard ML) and describe why these concepts are important.
In: Computer Science
Are the ff. implementations good or bad? Explain your answer.
a. ArrayStack: push the items to the front of the array (index 0), not at the back
b. SLLStack: use the SLL’s tail node as the top of the stack
c. SLLDeque: using a singly-linked list to implement the Deque ADT
d. DLLVector: using a doubly-linked list to implement the Vector ADT
In: Computer Science
- Write a method sum that expects a List<Integer> as a parameter. The method returns an int representing the sum of the integers in the list.
- Write an index-based loop that prints the contents of a list.
In: Computer Science
Describe the rules and regulation in disposal of hazardous waste and municipal solid waste.(50marks)
Need own answer and no internet answers r else i il downvote nd report to chegg.Even a single is wrong i il downvote.its 50marks question so no short answer minimum 10page answer required and own answer r else i il downvote.
Note:Minimum 10page answer and no plagarism r else i il downvote and report to chegg.Minimum 10 to 15page answer required r else dnt attempt.strictly no internet answer n no plagarism.
its 50marks question so i il stricly review nd report
In: Computer Science
In the following questions you will be designing a class called SuperDraw to
generate lotto numbers and manage the process of verifying whether a ticket
is a winner. Every lotto ticket has 6 numbers generated randomly between 1
and 49. A number cannot be repeated in the same ticket.
The main SuperDraw class structure should look like the following:
struct ticket
{
unsigned int numbers[6];
ticket* next;
};
class SuperDraw
{
private:
ticket* ticketListHead;
ticket* ticketListTail;
public:
SuperDraw(/* args */);
~SuperDraw();
};
ticket
is a linked list structure that holds the 6 lotto numbers in an array and a pointer to
the next element in the list. Notice that the class SuperDraw has 2 private data members,
ticketListHead and ticketListTail. They are 2 pointers pointing to the head (first element)
and the tail (last element) of the linked list.
Question 1 (5 pts)
Complete the implementation for the class SuperDraw by implementing the constructor
and the destructor bodies if needed. Constructor should be initializing the object to
whatever initial suitable state.
Question 2 (15 pts)
Add a public method called newTicket(int verbose = 0) that generates random 6 numbers.
The newly created ticket should be added to the linked list and the randomly generated
numbers should be printed out to the screen if verbose argument is set to 1. By default the
verbose argument is set to 0 which means that no messages will be printed out to the
screen.
The numbers should be sorted in ascending order.
Remember that the pointers ticketListHead and ticketListTail should be updated
accordingly after the generation of each new ticket
The test main() function should look like the following:
int main()
{
SuperDraw sd;
sd.newTicket(1);
}
The output should be something like:
A new ticket was successfully generated. The numbers are: 12, 14, 23, 39, 40, 44
Add a constructor that takes an int argument which corresponds to the number of tickets
to be generated.
Question 3 (10 pts)
The test main() function should look like the following:
int main()
{
SuperDraw sd(2);
}
The output should be something like:
2 new ticket were successfully generated.
The numbers are: 12, 14, 23, 39, 40, 44 and 1, 2, 9, 12, 28, 41
In: Computer Science