In a school, there are four teachers X1,X2,X3,X4 and five batches Y1,Y2,Y3,Y4,Y5. Given that teacher Xi is required to teach batch Yj for Pij periods, schedule a complete routine in the minimum possible number of periods. The matrix is given below: X1 X2 X3 X4 Y1 2 2 -- -- Y2 1 Y3 -- -- Y4 | 1 2 1 -- Y5 1 1 -- -- Remember there are only 3 class rooms availabl
Q: Write a C++ program that reads strings until "QUIT" input, which then displays all strings in the…
A: I have provided C++ CODE along with CODE SCREENSHOT and also provided OUTPUT SCREENSHOT------…
Q: Consider the following scenario: Universiti Tun Hussein Onn Malaysia (UTHM) is planning to…
A: A technology that is use to identify the information which is embedded into the data carrier in ways…
Q: B- 1. A computer has L1 and L2 caches and main memory. Access to the L1 cache takes 10 nanoseconds…
A: Here in this question we have given L1 cache acces time = 10ns L2 cache access time = 50 ns. Main…
Q: stakeholder register for a Greek restaurant
A: Stakeholder Register Stakeholder Type Level of interaction Importance Vendor Primary Recurring…
Q: Question 5 Q9A. Consider the following algorithm: sum = 0 for j in range(1,15): sum = sum +…
A: lets analyse the given code: sum = 0#initially setting sum to 0for j in range(1,15):#runs for j=1 to…
Q: 2 in python please
A: Here I have created a class Node with 2 data members to store the value and address it to the next…
Q: me router can deliver packets directly an forward packets to routers R2, R3, es the longest prefix…
A: Please go through both the methods, second is easiest. 1) longest prefix match 2) using And…
Q: I need help in this question in C program. Assume the following declarations: struct EmployeeTag {…
A: The question is to write C code for the given problem.
Q: 4) Suppose we have to transmit a list of five 4 bit numbers that we need to send to a destination.…
A: Note: if you need answer using CRC( include corresponding generator polynomial.)
Q: Write Java statements to accomplish each of the following tasks: a) Display the value of element 22…
A: In programming through Java, the Java statements are the instructions to the compiler that tells…
Q: A computer with 192.168.2.1 is not in the same network since it's "network" part is different, it's…
A: Introduction: Below describe computer with 192.168.2.1 is not in the same network since it's…
Q: Given the following class definitions and a declaration of Book b = new Dictionary() which of the…
A: b.getDefinition(); This option cause compile time errors in the code due to following…
Q: Write a function def identical(a, b) that checks whether two tuples have the same elements in any…
A: Here is the approach : First we have to take the two tuple as the input parameters to the function…
Q: I am writing a method to remove the first element in a doubly linked list. However I am supposed to…
A: While handling exceptions, In the 'catch' block we need to provide exactly what our 'try' block can…
Q: #include #include using namespace std; //Function 1 void vectorOutput(vector doubleVector) {…
A: Changes to your program has been made according to the demand of the question. All the changes have…
Q: Based on the following scenario: Salim Bersaudara Sdn Bhd (SBSB) is a factory that produces…
A: Database is a collection of stored data that can be accessed, edit or update electronically by some…
Q: . Consider the sliding window algorithm with SWS = RWS = 3, with no out-of-order arrivals and with…
A:
Q: Write a program that adds all numbers from 2 to 10,000 to a list. Then remove the multiples of 2…
A: I have provided PYTHON CODE along with CODE SCREENSHOT and OUTPUT…
Q: ALGORITHM Quicksort(A[l..r]) //Sorts a subarray by quicksort //Input: Subarray of array A[0..n − 1],…
A: The best-case time complexity of quicksort is O(n*logn). Average Case Complexity - It occurs when…
Q: How many times the following loop will be executed
A: Given Code:
Q: Explain the concept of online payment in brief.
A: Online payments are payments that take place over internet on behalf of goods and services that are…
Q: Create a file named StudentArrayList.java, within the file create a class named StudentArrayList.…
A: Introduction Create a file named StudentArrayList.java, within the file create a class named…
Q: Indices can speed up query processing, but it's usually a terrible idea to index every attr
A: The answer is
Q: usan is about to program a specific function for saving information into the database. She will need…
A: The Answer is given below step.
Q: Describe the difference between functional and non-functional requirements. List two functional and…
A: functional and non-functional requirements definition and list for online shopping system is given…
Q: Practice writing event handlers. Write the HTML tag and event handler to pop up an alert…
A: The complete HTML, CSS, Javascript, and Jquery code is given below with code and output screenshots…
Q: 4. Figure 1 shows an approach for memory management. (a) Does the approach (shown in Figure 1) cause…
A:
Q: (b) Suggest THREE (3) suitable countermeasures to avoid SBSB database from SQLinjection attack.
A: in this question we will discuss three countermeasures to avoid SBSB database from SQLinjection…
Q: ng for this question How would you modify the dynamic programming algorithm for the coin collecting…
A: Bartleby allows experts to answer only one question at a time.As you have multiple questions please…
Q: A program to converts a binary value between 0 and 9 in R4 into its ASCII representation is to be…
A: Input: str = “0110000101100010”Output: abExplanation: Dividing str into set of 8 bits as follows:…
Q: in what ways do language lead to connection ?
A: Language is a vital part of mortal connection. Although all species have their ways of…
Q: Write a C++ program to generate a random vehicle registration number that is a string of length 10…
A: Requirement: Write a C++ program to generate a random vehicle registration number that is a string…
Q: . An organization has been assigned the prefix 212.1.1/24 (class C) and wants to form subnets for…
A:
Q: Which of the following Student class methods must be implemented in the Student class to make this…
A: The Correct solution is given below with code and explanation
Q: 1. Consider the network shown in Figure 4.28, in which horizontal lines represent transit providers…
A: Below is the answer to above question. I hope this will be helpful for you..
Q: Hands-On Practice 14.9.(SHOWN ABOVE). Add a text box for the user’s city. Ensure that this text box…
A: JavaScript is the most popular scripting language for the web. It allows for designing interactive…
Q: Mobile IP allows a home agent to tell a correspondent node a new care-of address for a mobile node.…
A:
Q: import java.util.Scanner; public class Shady RestRoom 2 { // Modify the code below public static…
A: Screenshot of the code: Sample Output: Sample Run 1: Sample Run 2: Code to copy:…
Q: Your task is to create a program that prompts the user with the following user menu: Please enter…
A: The above question is solved in step 2 and step 3 :-
Q: Your task is to create a program that could be used to calculate the cost of purchasing several…
A: Program Plan: Create a class ShoppingCart as follows: Initialize variables to store TAX, index, and…
Q: (d) Explain THREE (3) forms of intellectual property that are relevant in the context of network and…
A: A type of intangible property that is created by the mined like inventions, designs, names, work of…
Q: c) A control protocol is used alongside the IP to support its operation: i) What is the name of the…
A:
Q: write C++ code for the fallowing pseudocode // Pseudocode Project 13 // Start // Declarations…
A: Complete C++ Code for the given Pseudocode is below:
Q: Propose a lookup algorithm for an IP forwarding table containing prefixes of varying lengths that…
A: IP forwarding tables are used to lookup the address of the next hop and to identify the ports for…
Q: When closing a TCP connection, why is the two-segment-lifetime timeout not necessary on the…
A: During this transition, TCP waits to receive an ACK. When it finally does, it knows there is no way…
Q: b\ Fill the blanks [(1 2311, then x4,3) = (³) - (1) Suppose you have a matrix x = 13 45/61 (2)…
A: Given, x = [1 2 3 4] 3 4 5 6 then, the required blank space would have:- x(: , 3) =…
Q: Write a program that will read the contents of "integers.dat". The output of the program is the…
A: Program Plan : 1.Declare header files. 2. Declare the variables to store the values .…
Q: Write a program that calculates the total grade for N classroom exercises as a percentage. The user…
A: C++ is just an object oriented programming language not only based on objects but also based on…
Q: Create table with the name AcademicDetails with following fields: RollNo, StudName, Course, Marks.…
A: Please answer all the question from the SQL: Create table with the name AcademicDetails with…
Q: We have a set of activities that require stand-alone access to a common resource, given the form A =…
A: The above algorithm is an activity election approach where non-overlapping activities are taken…
In a school, there are four teachers X1,X2,X3,X4 and five batches Y1,Y2,Y3,Y4,Y5. Given that teacher Xi is required to teach batch Yj for Pij periods, schedule a complete routine in the minimum possible number of periods. The matrix is given below: X1 X2 X3 X4 Y1 2 2 -- -- Y2 1 Y3 -- -- Y4 | 1 2 1 -- Y5 1 1 -- -- Remember there are only 3 class rooms available.
Step by step
Solved in 2 steps with 5 images
- Job scheduling Consider the problem of scheduling n jobs of known durations t1,t2,. . .,tn for execution by a single processor. The jobs can be executed in any order, one job at a time. You want to find a schedule that minimizes the total time spent by all the jobs in the system. (The time spent by one job in the system is the sum of the time spent by this job in waiting plus the time spent on its execution.) Design a greedy algorithm for this problem. Does the greedy algorithm always yield an optimal solution?After college, a group of students of a certain height planned to go to the movies. The cinema they go to is quite unique because the number of cinema rows is always 2 and the number of seats is as many as the number of students. Because this is a unique cinema, the way they sit is also unique. They will try to minimize their height difference with the one next to it so that the biggest height difference of each pair of students next to each other is as minimal as possible. Example: There are 6 students with height of 1, 6, 9, 7, 2, and 3. There are various sequences that can produce the biggest difference in height. Ordering 1:1 3 62 7 9Difference 1 and 3 is 2.Difference 3 and 6 is 3.Difference 2 and 7 is 5.Difference 7 and 9 is 2.So the biggest difference in height is 5. Ordering 2:1 3 26 7 9The biggest difference in height is 2.This difference is also an optimal answer. Format Input : There are T test cases. Each testcase contains integers N which indicates the number of students…As a teaching administrator of the department, your responsibility is to schedule the classes for a particular classroom. Suppose there are n classes, each class i is represented by its start time and finishing time [Si, fi], and we say that two classes i and j are non-conflicting if they do not overlap in time (i.e., sizfj or szfi). You want to schedule as many classes for the classroom as possible, but the scheduled classes should be non-conflicting. Develop an algorithm so that you can select the maximum number of classes for the classroom. (We are expecting either pseudocode or language description of your algorithm)
- Homework İTÜ A laboratory test was performed to obtain the change of concentration with time. Test results are shown on the table. The student Concentration Time (s) (mg/L) noticed that one datum at t=20s is missing. 194 - Use interp1() function to predict the missing value using different methods: 10 246 15 369 >linear 25 384 > cubic > spline 30 271 40 24 - Plot the results on the same figure. ISTANBUL TEKNİK ÜNİVERSİTESİ Artentr ougt 2020-21 Spring Homework #3 -– Tolga Y. Ozudogru, Ph.D.A B C D X1 a1 b1 c3 L X2 a2 b1 c1 L X3 a2 b2 c1 H X4 a2 b2 c2 H X5 a2 b1 c1 L X6 a2 b2 c1 H X7 a2 b1 c2 H X8 a1 b2 c2 L Using the table above, calculate the following, there measures (1) Kulczynski, (2) Lift, and (3) Cosine. a) A1 ==> L b) A2, B2 ==> H c) A2, C2 ==> HA group of n tourists must cross a wide and deep river with no bridge in sight. They notice two 13-year-old boys playing in a rowboat by the shore. The boat is so tiny, however, that it can only hold two boys or one tourist. How can the tourists get across the river and leave the boys in joint possession of the boat? How many times need the boat pass from shore to shore?
- QUADRATIC PRIMES This question is adopted from Project Euler Question 27. (https://projecteuler.net/problem=27) The quadratic formula n^2 + n + 41 will produce 40 primes for consecutive integer values 0 <= n <= 39. However, when n = 40, this formula will not generate a prime number. Another interesting quadratic formula n^2 – 79n + 1601 produces 80 prime numbers for consecutive values 0 <= n <= 79. The Question: find a and b such that when -999 <= a <= 999 and -1000 <= b <= 1000, the quadratic form ?^2 + ? × ? + ? produces the maximum number of primes for consecutive values of n, starting with n = 0. Requirement: MUST BE WRITTEN IN C++ - Print the 40 primes generated by formula n 2 + n + 41 - Print the 80 primes generated by formula n 2 – 79n + 1601 - Write a function that takes in an integer and returns whether the given number is prime or not. - Output the value of a, b and how many consecutive values of n (count the starting zero!) can be generated. - Submit…Branch-and-bound method exercise (Computer Science or Advanced Math) Let there be five jobs of the same type and one machine to get those jobs done. The processing time of the job on the machine and the time allowed for the job to be completed for each job are given in the table below. Job On the machinecompletion time(minute) To be finishedtime allowed(minute) 1 3 4 2 6 8 3 8 12 4 4 15 5 2 11 Apply the branch-and-bound method step by step to order the jobs in a way that minimizes the total delay time. State the optimal solution clearly. Thank you so much.Each publication of an academic can be cited from other publications. To this academic The h-index value is calculated as follows. The total number of articles of that academic It has an index of h if each of them is cited at least. For example, a If there are 28 articles cited at least 28 times among the author's research articles, the author's h-index is 28. In order for the H-index to be 29, 29 or more of 29 articles must be cited. must have received. Accordingly, the number of citations for each of the N articles of an author varies from large to small. C code the program that calculates the researcher's h-index when given sequentially. Write in "C"language. The examples below show the number of citations received for each publication.
- Due to COVID-19 pandemic which has caused high surge of patients at hospital, patients who diagnosed COVID-19 with no symptoms or mild symptoms are instructed to home quarantine and self-monitoring. Table 5 below shows an example of continuous monitoring of a patient's body temperature (TEMP) in 5 hours consecutively using a wearable thermometer. Table 5: Body Temperature Reading example within 5 hours continuous monitoring t (hour) TEMP (°C) 2 3 4 36.9 37.6 37.9 37.0 39.6 You are instructed to design a C program with the following specification: i. Read a 5 hours body temperature measurement result to obtain hour-by-hour value as shown in Table 5 using pre-defined function. ii. Scan through the body temperature value one by one and trigger the auto alarm system using pre-defined function in case any incident is detected as below: • Any TEMP value exceeds the threshold value of 39.5°C (e.g. t = 5 when ТЕMP - 39.6°C). • When TEMP value shows an increasing trend for 3 hours consecutively…It has been observed by management that some faculty member at the university demonstrates a lackadaisical attitude toward work. They seldom go to class yet at the end of each month they receive full salary. Management has decided that GHs 200, 300, 400, and 500 will be deducted from a faculty’s salary if he/she offends once, twice, third time and forth time respectively in a month. This means that if a faculty member offends once in a month GHs 200 will be deducted, if a faculty member offends twice in a month, GHs 500 (i.e. 200+300) will be deducted, if a faculty member offends three times in a month GHs 900 (i.e. 200+300+400), will be deducted and if a faculty member offends four times in a month GHs 1,400 (i.e. 200+300+400+500). Assuming all faculty members are on a flat salary rate of GHs 2500.a. Write a program to request for the names of four faculty members and number times he/she has absented him/herself from class. One of them should have absented him/herself once, another…It has been observed by management that some faculty member at the university demonstrates a lackadaisical attitude toward work. They seldom go to class yet at the end of each month they receive full salary. Management has decided that GHs 200, 300, 400, and 500 will be deducted from a faculty’s salary if he/she offends once, twice, third time and forth time respectively in a month. This means that if a faculty member offends once in a month GHs 200 will be deducted, if a faculty member offends twice in a month, GHs 500 (i.e. 200+300) will be deducted, if a faculty member offends three times in a month GHs 900 (i.e. 200+300+400), will be deducted and if a faculty member offends four times in a month GHs 1,400 (i.e. 200+300+400+500). Assuming all faculty members are on a flat salary rate of GHs 2500.a. Write a program to request for the names of four faculty members and number times he/she has absented him/herself from class. One of them should have absented him/herself once, another…