Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

JAVA program to peruse in a c++ program and underwrite every one of the remarks(/*, */, and//) in the program. compose java program to peruse

JAVA program to peruse in a c++ program and underwrite every one of the remarks(/*, */, and//) in the program. compose java program to peruse a rundown of non-negative numbers and show high, low, and normal

An application requires a hash table to hold up to 106 key-esteem matches where both the keys and the qualities are numbers. Cautiously portray the two potential executions: (a) open hashing utilizing connected arrangements of key-esteem matches outside the table and (b) shut hashing in which all key-esteem matches are held inside the hash table. [10 marks] Discuss how you would conclude which strategy is generally reasonable for the given application. [4 marks] Assuming the table has precisely 106 sections and that keys, values and rundown pointers are all of size 4 bytes, and that you have dispensed an aggregate of 16 million bytes for the table (and hash chains), gauge the normal number of key examinations important to find a current passage for (a) the open hash table and (b) the shut hash table. [6 marks] 4 Comparative Programming Languages Give a concise portrayal of the vitally syntactic builds utilized in Smalltalk (or Squeak) programs, representing your response by making sense of the importance of the accompanying section of code: [self isAwake] whileTrue: [| thing | thing := self askForCookie. (self isCookie: thing) ifTrue: [self eat: item] ifFalse: [self complainAbout:item]. (self isFull) ifTrue: [self sleep]] [10 marks] Suggest how you carry out in Smalltalk (or Squeak) a parallel tree where every hub contains a number and pointers to two or less different hubs of a similar kind. [4 marks] Outline the code you would utilize (a) to develop this sort of tree, and (b) to total every one of the whole numbers in a given tree. [6 marks] 3 [TURN OVER CST.2003.4.4 5 Operating Systems II (a) Describe the fundamental activity of a log-organized document framework. What are the possible advantages? What are the issues? [8 marks] (b) Several cutting edge document frameworks utilize journalling. Depict how a diary is utilized by the document framework, and the circumstances where it is gainful. [6 marks] (c) You are alloted the assignment of planning a tape reinforcement procedure for a significant document server. The objective is to expand the time any document is hung on reinforcement while limiting the quantity of tapes required. Sketch your procedure, remarking on the help you expect from the record framework, and legitimizing your plan choices.

imageimage

3.5.6 Suppose you roll two fair six-sided dice. Let X be the number showing on the first die, and let Z be the sum of the two numbers showing. (a) Compute E (X). (b) Compute E (Z | X = 1). (c) Compute E (Z|X = 6). (d) Compute E(X|Z = 2). (e) Compute E (X | Z = 4). 182 (f) Compute E (X|Z = 6). (g) Compute E (X|Z = 7). (h) Compute E (X | Z = 11). Section 3.5: Conditional Expectation

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Financial Statement Analysis

Authors: K. R. Subramanyam, John Wild

11th edition

78110963, 978-0078110962

More Books

Students also viewed these Computer Network questions