Given the following array A, answer all questions 58 72 19 41 33 62 84 1) Show the array A when Build Max Heap (A) is called and indexi- 2 is already executed. 2) Show the array after Build_Max_Heap (A) is executed. 3) If we are to insert 95 what is the value of the variable 'i' at line 1 of Max Heapify (A. i) for the initial call? 4) If we are to insert 95. show the array A at line 1 of Max Heapify (A. i) for the initial call? 5) If we are to insert 95. what is the value of the variable i at line1 of Max Heapify (A, i) after the first recursive call? 6) If we are to insert 95. show the array A once the Max_Heapify (A. i) is terminated.
Q: This is a list of the first supercomputers in the world.
A: This is a list of the first supercomputers in the world.
Q: ( Make purchase, View items, Complete check out) Conversion sequence diagram as example
A: answer is
Q: Which AWS service can let us centrally manage billing and security rules across several accounts? (...
A: Introduction: Language is a widely used programming language that has been used to develop a variety...
Q: Consider the int Array below and determine the values of A and B so that Array[0] has an integer in ...
A: The question is to find the values of A and B.
Q: Question :) Buffers are used to minimise access latency between various levels of the memory hierarc...
A: Step 1 The answer is given in the below step
Q: Task 3 Develop a class diagram for following description: Prepare a class diagram for a graphical do...
A: Given The answer is given below
Q: ouble or char) NxN array (N>=2) 2. (char) 1x5 array containing the sort instructions Output: 1. (d...
A:
Q: 4, In most of Europe and Asia annual automobile insurance is detemine Each policyholder is given a n...
A:
Q: Who made the hybrid computer
A: Computer which are based on analog and digital concepts are known as hybrid computers.
Q: Define the term "virtual machine" and explain why it is necessary.
A: Given We know about the virtual machine 1) define virtual machine 2) why it is necessary
Q: Sales Data Program Create a successful running c++ program that meets the following requirements. ...
A: ************* something to note ***************In the program i had created the add function as Sup...
Q: Write a C program containing a recursive function that will get the whole number quotient result of ...
A: Given: To write a C program to find quotient of two numbers.
Q: #include using namespace std; class Box { double width; public: friend void printWidth( Box box );...
A: I have modified the code to count number of objects.
Q: : Write a program to add 50 numbers stored at memory location start at 4400H:0100H then store the re...
A: MOV AX , 4400HMOV DS, AXMOV CX , 0050H ← counterMOV BX , 0100H ← offsetlabel → Again: ADD AL, [BX]IN...
Q: You will create a web application to store inventory for products. Choose your business name, logo, ...
A: Create a DbContext class and DbSet to map model classes to a database Seed data for your product ......
Q: The value of the keyboard flag byte is returned by which INT 16h function?
A: Function INT 16h: INT 16h functions are for BIOS interrupt vectors that take keyboard actions on any...
Q: Question 8 Find value x such that the address of buf[x] equals to the address of p. Both buf and p a...
A: Q8)
Q: Extend DATAVIEW to support some blockchain features, such as the support of Metatask, a new token to...
A: Blockchain can enable Universal Basic Income, (UBI) through a system like Circles, or power local cu...
Q: Write a JAVA program in which the user enters the initial velocity u, time of travel t, and the acce...
A: import java.util.Scanner;//to read inputpublic class Main{ public static void main(String[] args) { ...
Q: ramming Exercise 2.6 Instructions momentum.py 1 # Modify the following code The kinetic energy of a ...
A: The kinetic energy of a moving object is given by the formula KE = ½mv2 where m is the object’s mass...
Q: 1Are functions of Watson available to public, such as you (with charge)? If yes, then how do we acce...
A: 1Are functions of Watson available to public, such as you (with charge)? If yes, then how do we acce...
Q: (a) Show that the following grammar is ambiguous: ::= | [ ::= 0 | 1|2 |3|4|5|6|7|8 | 9 (b) Find...
A: Find the answer below to above question. I hope this will meet your requirement.
Q: Write a JAVA program in which the user enters the initial velocity u, time of travel t, and the acce...
A: Required:- Write a JAVA program in which the user enters the initial velocity u, time of travel t, a...
Q: Create a single SHLD instruction that moves the AX register's highest bit to the DX register's lowes...
A: Given that: Create a single SHLD instruction that shifts the highest bit of the AX register to the l...
Q: Input alphabet = {a,b} 1. write the CFG for the language of palindromes 2. Convert this into PDA (st...
A: 1) CFG of the given palindrome
Q: Buffers are used to minimise access latency between various levels of the memory hierarchy. List the...
A: Let's see the solution in the next steps
Q: Please provide a C++ program in which a min priority queue is declared and the priority queue stores...
A: Required:- Please provide a C++ program in which a min priority queue is declared and the priority q...
Q: construct an NFA that realizes the language L over the alphabet {a, b, c} that consists of all strin...
A: Here is the NFA about the string given:
Q: What is the SI/DH register's code?
A: Introduction: The 16-bit index registers are called SI (Source Index) registers. It is used to condu...
Q: Why would a problem cause the current command to be retried?
A: Page fault is a phrase that refers to the pages that are kept in memory. When a user requests access...
Q: Define the term "virtual machine" and explain why it is necessary.
A: Introduction: A virtual machine is created on a physical hardware system (off-premises) that acts as...
Q: What is the IEEE-754 single precision real number after encodingt the real decimal number -76.0625? ...
A: Here in this question we have given a decimal numbers and we have asked to convert it into IEEE 754 ...
Q: Write C++ program to represent a simple nested case (selector).
A: In this question, we are asked to write a program so that nested cases would be used in C++ Explaine...
Q: Define Turing Machine. Describe its capabilities. Also write short notes on Universal Turing Machine...
A: Given The answer is given below
Q: Help me with the coding. 1.find the sum of elements for the array named number which contains data {...
A: According to the Question below the Solution: Output:
Q: Which INT 21h operations are necessary to acquire the system date, show it, and then alter it?
A: Introduction: Within this range, some calls have sub functions that expand the scope of operations. ...
Q: Which field in the FPU control word allows you to modify the rounding mode of the processor?
A: Rounding Control Field or RC field controls how floating point instructions are rounded. See below ...
Q: chy. List the probable buffers required between the L1 and L2 caches, as well as between the L2 cach...
A: L1 is "level-1" cache memory, usually built onto the microprocessor chip itself. L2 (that is, level-...
Q: What decimal value does the 8-bit binary number 10110110 have if it is represented using two's compl...
A: 1) We have 8-bit bianary number 10110110 which is represent in two's complement 2) We need to find ...
Q: When invoking INT 21h, which register contains the function number?
A: Answer: INT: 21 h A subdirectory may be created using the function 39h. INT: 21 h Function The curre...
Q: d) Why will anything will be able to use an lP address or any other form of addressing scheme in the...
A: In a computer network, there is a requirement for communication which is fulfilled by an addressing ...
Q: Which of the following instructions inserts an integer operand into ST(0
A: SUMMARY: - Hence, we discussed all the points.
Q: Total = a +b + c; Average = Total / 6; А. Logic Errors В. Run-time Errors С. None of the above Synta...
A: A programming language must follow rules and regulations to execute task successfully. Logical erro...
Q: Salesforce/SOQL/Developer Please create a simple SOQL query to check the permission granted on a obj...
A: The code is given below
Q: Let E (0,1). Let A and B be the lists of three strings each, defined as List A List B W, 1 1 111 2 1...
A: Given that wi = (w1, w2, w3) = (1,10111,10) xi = (x1,x2,x3) = (111,10,0) let us consider the sequen...
Q: In which register does a local descriptor table's base location reside?
A: Answer:
Q: Consider the int Array below and determine the values of A and B so that Array[0] has an integer in ...
A: The question is to find the values of A and B.
Q: What UNIX utility can read an Execution and Linkable Format file's contents?
A: Executable and linkable format : In processing, the Executable and Linkable Format (ELF, previously ...
Q: e char datatype is OASCI O EBCDIC O MORSE Any of the choice
A: The char datatype is based on what standard?OASCII O EBCDICOMORSEOAny of the choice
Q: show your work text not a picture -35 (base 10) = ____________________________ (8-bit Excess-M bi...
A: Converting -35 to base 10. -*102=0 3*101=30 5*100=5 Adding all to get Ans=3510
(Please do your own work. Don't copy from other solutions)
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 1 images
- Web technology Question: Professor Don't reject this time....answer it. Q.No.3. Consider the Marks against each students in different subjects Student Names Database Tot Marks : 60 PF Tot Marks : 80 Marketing Tot Marks : 60 Irfan 56 45 59 Salma 67 56 52 Inayat 54 40 48 Basharat 56 53 51 Store these details in the Multidimensional Associative Array. Display the output as shown here S# Student Name Obt: Marks %age= (Obt:Marks / 200) * 100.0 Grade 1 Iranf 160 80 B 2 Salma 175 87 A 3 Inayat 142 71 C 4 Basharat 160 80 B A >80% B (71-80%) C (61-70%) D(51-60%) F<50% Grade Summary Total A Grade = 1 Total B Grade = 2 Total C Grade = 1 Total D Grade = 0 Total F Grade = 0 Add complete set of Screen Shots against all the steps…Web technology Question: Professor Don't reject this time..answer it according to Question and give all screen shots step by step....this must be solved by PHP. Q.No.3. Consider the Marks against each students in different subjects....Solve by PHP Student Names Database Tot Marks : 60 PF Tot Marks : 80 Marketing Tot Marks : 60 Irfan 56 45 59 Salma 67 56 52 Inayat 54 40 48 Basharat 56 53 51 Store these details in the Multidimensional Associative Array. Display the output as shown here S# Student Name Obt: Marks %age= (Obt:Marks / 200) * 100.0 Grade 1 Iranf 160 80 B 2 Salma 175 87 A 3 Inayat 142 71 C 4 Basharat 160 80 B A >80% B (71-80%) C (61-70%) D(51-60%) F<50% Grade Summary Total A Grade = 1 Total B Grade = 2 Total C Grade = 1 Total…An element that comprises more than half of the items in an array is referred to as a majority element. Find the dominant element in a list of positive integers. Return -1 if there is no majority element. Execute this in 0(1) space and O(N) time.Input: 1 2 5 9 5 9 5 5 55 outputAn element that comprises more than half of the items in an array is referred to as a majority element. Find the dominant element in a list of positive integers. Return -1 if there is no majority element. Execute this in 0(1) space and O(N) time.Input: 1 2 5 9 5 9 5 5 55 output
- Question 4: (30 marks) A Math teacher is teaching Math course to a set of classes (each class may have different number of students) and want to check the behavior of his students in a homework report. The teacher gave the classes the same exam and marked their answer and wants to know the class whose students got the highest average. Help the teacher in the required analysis of student’s marks by implementing a Java program ClassAverageMArks2DimmArray using 2-dimensional array to store the students marks and then compute the average of each class student’s marks. The program has the following specification: • A Method titled averageClassMarks for computing the average (as double) of a class students marks (given to the method as a single-dimensional array) • Another Method titled averageAllClassesMarks for computing the average (as single array of double) of all the classes class student’s marks (given to the method as a 2dimensional array). This method has to repeatedly call the…Java-.Selection and insertion sort 3.a Show steps of selection sort for the given array. You may need to add more rows to the table. Selection Sort Initial value 3 2 7 5 4 8 9 10 1 Search 0 . . . end 3 2 7 5 4 8 9 10 1 Swap index 0 Search 1 . . . end . . . 3.b Show steps of insertion sort for the given array. You may need to add more rows to the table. Insertion Sort Initial value 3 2 7 5 4 8 9 10 1 , first item is sorted 3 2 7 5 4 8 9 10 1 , first 2 items are…ALGO1(A)// A is an integer array, an index that starts at 11): for i=1 to n-1 do2): minIndex = findSmallest(A,i)3): exchange A[i] with A[minIndex] The sub-routine find the smallest(A, i) in Line 2, and returns the index of the smallest element in thesub-array A[i:n]Suppose the array below is provided as input to ALGO1 2 5 6 7 3 8 1 4 Fill in the Blanks At the end of the first iteration of the for loop (i.e. with i=1)1) a) the element at index 1 is : b) the element at index 4 is : c) the element at index 7 is :
- Extend the Array project to include:16. Define a pointer to a double, pdArray.17. Assign the pointer, pdArray, to contain the address of the double array, dArr:18. Use the array name, dArr, to print out the array elements with subscript notation, [ ]. All on 1 line a space between each.19. Use the pointer to print out the array elements with pointer notation while not changing the pointer itself. Use a for loop. *( pdArray + Cnt1) would be an example. All on 1 line a space between each.20. Use the pointer to print out the array elements with pointer notation but change the pointer to point to the actual array element rather than the method in 18. All on 1 line.*pdArray would do this if the loop has the following post loop operation: pdArray++21. Use the array name for the double array and pointer notation to print the entire array, all on one line.22. Using a different pointer, piArray, allocate enough memory for 100 int's and assign the address to the pointer.23. In a for loop…Consider the array L = 387, 690, 234 435 567 123 441 as an example. The number of components in this case is 7, the number of numbers is 3, and the radix is 10. This suggests that radix sort would require 10 bins and 3 cycles to complete the sorting. shows how the radix order is followed by the list. Each key is probably thrown into the garbage bin facing down. Each bin is turned into a key when the output to the is to be attached to the phrase: at the end of the bin.The code below computes the intersection (the number of entries shared by two arrays). It is assumed that neither array contains any duplicates. It computes the intersection by sorting one array (array b) and then iterating over array a to see if each value is in b (through binary search). What is its duration? nt intersection(int[] a, int[] b) {mergesort(b);}int intersect = 0;for (int x : a) {if (binarySearch(b, x) >= 0) {intersect++;return intersect; }}
- Solve the following codes below and discuss how array, stack, and queues are used in each problem. Must have comments. 1. Write a python program that takes two three-dimensional numeric datasets andperform elementwise addition. 2. Write a python program that ask a user to enter a n-by-m numeric matrix andperform matrix addition and multiplication. 3. Write a python program that asks user to input 10 positive and negative integers andbe stored in an array of 20 indices, The program will then rearrange the arrayelements so that all negative numbers appear before all positive numbers.Suppose an array sorted in ascending order is rotated at some pivot unknownto you beforehand. (i.e., 0 1 2 4 5 6 7 might become 4 5 6 7 0 1 2).Find the minimum element. The complexity must be O(logN)You may assume no duplicate exists in the array."""def find_min_rotate(array): """ Finds the minimum element in a sorted array that has been rotated. """ low = 0 high = len(array) - 1 while low < high: mid = (low + high) // 2 if array[mid] > array[high]: low = mid + 1 else: high = mid return array[low] def find_min_rotate_recur(array, low, high): """ Finds the minimum element in a sorted array that has been rotated. """ mid = (low + high) // 2 if mid == low:.To start, create your own set of 10 numbers in an array that are not sorted. Using your array, do the following exercises: Show how the Mergesort algorithm sorts your array by: 1) Showing which sub parts of the array are being examined with each recursive call to Mergesort 2) Showing the results of the array each time the Merge function is used Your demonstration should be similar to slides 19-33 in the Mergesort presentation. You do not have to show the details of the function calls in the stack (unless it helps you), but do explain what is happening at each step to show understanding of the algorithm. Using your same original array, show how the Quicksort algorithm sorts this array by: 3) Showing the results of the array each time the Partition function is used 4) Showing which sub parts of the array are being examined with each recursive call to Quicksort Your demonstration should be similar to slides 35-64 in the Quicksort presentation. Again, you do not have to show all the…