1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
chubhunter [2.5K]
4 years ago
8

If necessary, open the Cleanup Animator and choose the Shuffle Left algorithm from the Select Algorithm drop-down list. Click Ru

n and observe the "loop inside a loop" nature of this algorithm by watching the animation. The general idea is that the L marker moves to the right trying to detect 0s. Each time it detects a 0, the R marker moves to the right, shuffling the data items to the left. Try this three or four times, remembering to click Reset to prepare for each run. Suppose the original data set consists of these numbers: What is the final arrangement of the data when the algorithm terminates?
Engineering
1 answer:
jek_recluse [69]4 years ago
3 0

Answer:

A = 42 32 0 0 0 77 23 71 is the list of numbers taken here as the question is incomplete.

L marker moves to the right trying to detect 0s. Each time it detects a 0, the R marker moves to the right, shuffling the data items to the left.

Get the array, A and its size, n

L = 1

R = 2

Repeat the following steps until left > legit

if AL ≠ 0

L ++

R ++

else

legit --

Repeat the following steps until right > n

Copy AR to AR

R ++

R = L + 1

stop

Explanation: The arrangement of data is as follows:

A = 42 32 0 0 0 77 23 71

N = 8; L= 1; R = 2

Iteration 1: 42 ≠ 0 => L = 2; R = 3

A = 42 32 0 0 0 77 23 71

Iteration 2: 32 ≠ 0 => L = 3; R = 4

A = 42 32 0 0 0 77 23 71

Iteration 3: 0 = 0 => N = 7

Copy the remaining elements one position to its left

A = 42 32 0 0 77 23 71

Iteration 4: 0 = 0 => N = 6

Copy the remaining elements one position to its left

A = 42 32 0 77 23 71

Iteration 5: 0 = 0 => N = 5

Copy the remaining elements one position to its left

A = 42 32 77 23 71

Iteration 6: 77 ≠ 0 => L = 4; R = 5

A = 42 32 77 23 71

Iteration 7: 23 ≠ 0 => L= 5; R = 6

A = 42 32 77 23 71

Iteration 8: 71 ≠ 0 => L= 6; R = 7

A = 42 32 77 23 71

L > N ---- stop

final arrangement of the data when the algorithm terminates

42 32 77 23 71

You might be interested in
The seers were of the opinion that_____ . *
AURORKA [14]

Answer:

✔️a healthy mind resides in a healthy body.

Explanation:

The seers were of the opinion that "a healthy mind resides in a healthy body."

Just like the English translation of a famous quotation from Thales, pre-Socratic Greek philosopher puts it "a sound mind in a sound body"; which tries to demonstrate the close connections that exists in bodily well-being and one's ability to enjoy life.

The seers were actually of the opinion that a healthy mind resides in a healthy body. It implies that there is connection between the body and the mind. When the body catches an illness, the mind and other parts of the body are affected. When our minds are not healthy, it affects the effective functioning of the body.

So, a healthy mind will definitely be found in a healthy body.

4 0
3 years ago
Problem 4.079 SI A rigid tank whose volume is 3 m3, initially containing air at 1 bar, 295 K, is connected by a valve to a large
salantis [7]

Answer:

Q_{cv} = -1007.86kJ

Explanation:

Our values are,

State 1

V=3m^3\\P_1=1bar\\T_1 = 295K

We know moreover for the tables A-15 that

u_1 = 210.49kJ/kg\\h_i = 295.17kJkg

State 2

P_2 =6bar\\T_2 = 296K\\T_f = 320K

For tables we know at T=320K

u_2 = 228.42kJ/kg

We need to use the ideal gas equation to estimate the mass, so

m_1 = \frac{p_1V}{RT_1}

m_1 = \frac{1bar*100kPa/1bar(3m^3)}{0.287kJ/kg.K(295k)}

m_1 = 3.54kg

Using now for the final mass:

m_2 = \frac{p_2V}{RT_2}

m_2 = \frac{1bar*100kPa/6bar(3m^3)}{0.287kJ/kg.K(320k)}

m_2 = 19.59kg

We only need to apply a energy balance equation:

Q_{cv}+m_ih_i = m_2u_2-m_1u_1

Q_{cv}=m_2u_2-m1_u_1-(m_2-m_1)h_i

Q_{cv} = (19.59)(228.42)-(3.54)(210.49)-(19.59-3.54)(295.17)

Q_{cv} = -1007.86kJ

The negative value indidicates heat ransfer from the system

7 0
3 years ago
You are asked to design a software package for an On-line Banking System (OBS). The OBS will take requests from its user on the
Anit [1.1K]

Answer:

From the statements described above,The proposed software package Online Banking System(OBS) shall provide the following services to the customer(account holder)

Receive all transaction requests from the customers trough online to perform banking activities

Offer a variety of services in banking like:

Opening an account with facilities of Savings,Checking and CD

Issuing checks and check clearance

Transfer of funds between savings and checking account

Establishing a CD(Certificate of Deposit)

Performing routine activities like

Deposit or withdraw funds from a checking account

Closing an account in one of the following operation

Complete closure of account

Closing only savings account

Withdraw CD (on Maturity of CD deposits) and close CD account

Unlike traditional Banking system, OBS offers all the operations through On-line mode over the internet thereby it eliminates manual intervention for the banking transactions from the Bank's side for most of the transactions except some cases like verification of new account applications or complaint redressal and technical support .In such cases ,There will be some users of the software with special privileges to access certain services to perform activities like user data verification and technical support.

Step:1 Identification of actors and software entities for the system to be implemented

The following are the actors identified in the system

Actors:

The users of the proposed system were classified as:

Customer : A user with an active account

Guest user:The user who applies for an account

Administrator:Maintainsand Controls OBS

Manager: Manages the transactions and Banking related issues

Technical Manager: Resolves technical issues of customers

Software entities:

Bank database :Maintains the data of all user accounts

Application server : Maintains the application software components and hosts the OBS website

Automatic Clearing House system : Processes transactions for checks

Step 2: Designing use cases

Use case diagrams are used to describe the system model by representing a set of use cases .Each use case represents a set of actions performed on the system by an actor.

The following are the two approaches of representing the system in a use case model:

1.Representing a use case for actions done by actors e.g. login , logout,message etc.,

2.Representing a use case for business process(Business use cases) e.g. transfer,registration etc.,

The following is the description of five possible business use cases for the requirements specified above

3 0
3 years ago
What happens to the amperage draw of a condensing unit on a split AC system if the liquid line is restricted
cupoosta [38]

Answer:

The amperage draw of the condensing unit will be low.

Explanation:

A condensing unit is made up of a compressor and condenser, while an evaporating unit is made up of an evaporator coil.

A split AC system is a type of air conditioner system that has a condensing unit which is placed separately from the evaporative coil unit. Then the two units are connected to each other via a copper tube containing refrigerants.

The liquid line connects the condenser to the evaporator, and if this liquid line is restricted, the amp consumed by the condensing unit will be low.

6 0
3 years ago
Internal service quality means that an entire organization,
svetoff [14.1K]
True

Internal service are base on customer needs.

The customers are the priority
7 0
3 years ago
Other questions:
  • The moisture in hot, humid, stagnant air surrounding a cold-water pipeline continually diffuses to the cold surface where it con
    14·1 answer
  • Calculate the availability of a system where the mean time between failures is 900 hours and the mean time to repair is 100 hour
    15·1 answer
  • You have designed a treatment system for contaminant Z. The treatment system consists of a pipe that feeds into a CSTR. The pipe
    8·1 answer
  • 3 examples of technology transfer pls
    12·2 answers
  • A(n) is a detailed, structured diagram or drawing.
    6·1 answer
  • Mining is an example of this type of business
    7·1 answer
  • Your local hospital is considering the following solution options to address the issues of congestion and equipment failures at
    6·1 answer
  • Georgia Tech is committed to creating solutions to some of the world’s most pressing challenges. Tell us how you have improved o
    15·1 answer
  • 50 points
    7·1 answer
  • सत्य से अधिक उपयोगी एवं आज्ञापालन से श्रेष्ठ क्या है ?<br>answer fast plz​
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!