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
zhuklara [117]
3 years ago
8

What are the advantages to using a linked implementation as opposed to an array implementation?

Computers and Technology
1 answer:
aalyn [17]3 years ago
5 0

Answer:

 The main advantage of using the linked implementation over the array implementation are:

  • In linked list, the size of list does not need to be mention initially in the program in dynamic memory deallocation and allocation.
  • We can easily add new elements and nodes in the linked list as there is no size limit.
  • We can easily insert and also remove the elements and nodes in the linked list without re-organize the complete structure. As, the information do not need to be stored in the memory. On the other hand, array implementation takes maximum time as compared to linked list.  

You might be interested in
Write a program that receives a series of numbers from the user and allows the user to press the enter key to indicate that he o
kogti [31]

Answer:

theSum = 0.0#defined in the question.

count=0 #modified code and it is used to intialize the value to count.

data = input("Enter a number: ") #defined in the question.

while data != "": #defined in the question.

   number = float(data) #defined in the question.

   theSum += number #defined in the question.

   data = input("Enter the next number or press enter to quit ") #defined in the question "only some part is modified"

   count=count+1#modified code and it is used to count the input to print the average.

print("The sum is", theSum)#defined in the question.

print("The average is", theSum/count) #modified code and it is used to print the average value.

output:

  • If the user inputs as 1,4 then the sum is 5 and the average is 2.5.

Explanation:

  • The above code is written in the python language, in which some part of the code is taken from the question and some are added.
  • The question has a code that tells the sum, but that code is not print the average value of the user input value.
  • To find the average, some codes are added, in which one count variable which is initialized at the starting of the program and gets increased by 1, when the user gives the value.
  • Then that count divides the sum to print the average.
5 0
3 years ago
If a 120 V appliance requires 15 A to operate, what is the resistance of the appliance?
Strike441 [17]

The resistance is 16 ohm's

V=I x R where V is the voltage, I is the current, and R is the resistance in Ohms

120= 15 x R

R=120/15

R= 8 Ohm's

P=VxV / R

P=120v x 120v / 8 ohms

P= 14400/8

P = 1800 watts

R = V x V/P

R = 14400/900

R = 16 Ohm's

The resistance is 16 ohm's:

I = V/R

I = 120/16

I = 7.5 Amps


8 0
3 years ago
How to wire two separate switches & lights using the same power source?
Ann [662]
Pull the other end of each cable through the back of the electrical box for the switch<span> that controls it, then strip the end of the cable with a knife and </span>separate<span> the </span><span>wires.

</span>
5 0
3 years ago
Five Star Retro Video rents VHS tapes and DVDs to the same connoisseurs who like to buy LP record albums. The store rents new vi
77julia77 [94]

Answer:

here is code in C++.

#include <bits/stdc++.h>

using namespace std;

int main()

{

   // variables to store number of each video

   int new_video,old_video;

   double total_charge;

   cout<<"Please enter number of new video:";

   // read number of new video

   cin>>new_video;

   cout<<"Please enter number of old video:";

   // read number of old video

   cin>>old_video;

   // total change

   total_charge=(3.0*new_video)+(2.0*old_video);

   cout<<"total cost is: "<<total_charge<<endl;

return 0;

}

Explanation:

Declare two variables "new_video" and "old_video" to store the number of each type of video.Read the value of both from user.Then calculate total charge by multiply 3.0 to number of new video & 2.0 to number of old video and add both of them. This will be the total charge.

Output:

Please enter number of new video:4

Please enter number of old video:6

total cost is: 24

4 0
3 years ago
Which network protocol is used to route ip addresses?.
IgorLugansk [536]

Answer:

the Internet Protocol (IP)

3 0
2 years ago
Other questions:
  • The network board in a workstation is currently configured as follows:- network speed = auto- duplexing = autoThe workstation is
    13·2 answers
  • Consider a classStudent. The following code is used to create objects and access its member functions. Which statement is true a
    6·1 answer
  • A dedicated website was created where fans could post photos of the pages from decoded that they found. in the communication pro
    11·2 answers
  • Adding _______ around calculations indicates which calculations should be performed first before following the typical order of
    6·2 answers
  • Which function is going to find the lowest value in a range of numbers? MIN MAXAVERAGE COUNT
    5·1 answer
  • A technician attempts to run an executable file on a Linux computer but receives a Permission Denied message.
    11·1 answer
  • What is the difference between a key and a superkey?
    10·1 answer
  • In ____________, a large address block could be divided into several contiguous groups and each group be assigned to smaller net
    7·1 answer
  • What are two reasons for converting a document or record into a digitized format?
    6·1 answer
  • jelaskan tiga kemungkinan sebab pengasah pensil itu tidak dapat berfungsi secara tiba-tiba (translate: explain three possible re
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!