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
Verizon [17]
3 years ago
11

Which method of traversing a tree would result in a sorted list for a binary search tree?

Computers and Technology
1 answer:
shutvik [7]3 years ago
6 0

Answer:

The inorder traversal make a binary search tree sorted.

Explanation:

The algorithm of inorder traversal is

1.  Traverse the left subtree.

2.  print the data .

3. Traverse the right subtree

In this algorithm left subtree  is visited first then it print the data or visit the data and finally it visited Right subtree .

You might be interested in
You have been hired to upgrade a network of 50 computers currently connected to 10 mbps hubs. this long-overdue upgrade is neces
Nonamiya [84]

It is suggested to use a wireless router and switches for the network. As there are only 50 computers, you can opt for a router and two 24-port network switches. The server and one computer can be connected to the router directly.

The other computers can be connected to the switches.

* If you have a broadband connection, connect your cable modem to the router using the Ethernet cable.

Place these two network devices in the location which can be accessed easily because all the workstations have to be connected to this point with the network cable.

or

If you would like to connect to the network wirelessly, the router should be in a center point so that all the workstations get a strong signal.

* If you are using a wired connection, conect the network switch into the open Ethernet ports on back of the router. This will give you additional ports.

* Now, run ethernet cables from each workstaion to the switch. From there, connect you wireless network to make sure that you get an internet connection.

If it is wired conection, ensure that you set the IP address in each workstation with the server setting.To do so:

Click Start ->Run or hold Windows+R,

Type ncpa.cpl

Control Panel window would appear.  

Click Network and Sharing Center.

Click Change adapter settings.

Click on the connection and click Properties.

Click Internet Protocol Version 4(TCP/IPv4)Properties.

You can either select --Obtain IP address automatically(where IP addresses are automatically assigned for each workstation)and select

Obtain DNS server address automatically.

or  

Select Use the following IP address (In this case, the IP and DNS information is provided by the Internet Service provider).

This would setup a network.

Please check the manual provided with the router to configure the router.

It is also suggested to ensure that you setup security for your router.

The reason for using routers as the main device is because routers are the smartest. Routers perform two important tasks:

DHCP and NAT

DHCP-Dynamic Host Configuration Protocol is the way dynamic IP addresses are assigned.

NAT- Network Address Translation is the way router translates IP addresses of packets across the Internet or the local boundary.

When switches are considered, it can be managed or unmanaged switches.Switches provide a more structured network.An managed switch can be accessed onsite or remotely and can be programmed by the manager.16 port managed switches are available from CISCO and Dell. An unmanaged switch can be used for home or smaller networks where 24-port switches can be used.

Each system would be individually connected to the network switch in the network, so that even if a single system fails, there would be no breakdown in the network.

8 0
3 years ago
The Chairman of the Federal Reserve & the Federal Open Market Committee determine the percentage of a deposit which must be
Scrat [10]
Required Deposit Reserve
6 0
4 years ago
What is the range of possible values for the variable x?<br><br> int x = (int)(Math.random() * 10);
Nimfa-mama [501]

Answer:

int number = (int)(Math. random() * 10); By multiplying the value by 10, the range of possible values becomes 0.0 <= number < 10.0

please mark me as the brainliest answer and please follow me for more answers.

7 0
3 years ago
Sentence Deobfuscate Name this file deobfuscate.cpp Hints: Don’t overthink this problem. Prompt the user to enter a collection o
nordsb [41]

Answer:

In C++:

#include <iostream>

using namespace std;

int main(){

   string text,lengt;

   cout<<"Please enter obfuscated sentence: ";    cin>>text;

   cout<<"Please enter deobfuscation details: ";    cin>>lengt;

   string t1, t2;

   int kount = 0;

   for(int i = 0;i<lengt.length();i++){

   kount+=(int)(lengt[i]-'0');

   t1 = text.substr(0, kount);

   t2 = text.substr(kount, text.length()-1);

   text = t1 +" "+ t2;

   kount++;   }

   cout<<"Deobfuscated sentence: "<<text;

   return 0; }

Explanation:

This declares the text and the deobfuscation details as string

   string text,lengt;

This prompts for the sentence

   cout<<"Please enter obfuscated sentence: ";     cin>>text;

This prompts for the details

   cout<<"Please enter deobfuscation details: ";     cin>>lengt;

t1 and t2 are declared as string. They are used to split the texts into 2 parts

   string t1, t2;

This declares and initializes a count variable to 0  

   int kount = 0;

This iterates through the deobfuscation details

for(int i = 0;i<lengt.length();i++){

This gets each deobfuscation character

   kount+=(int)(lengt[i]-'0');

The next two instructions splits the text into 2

This gets from 0 to kount.

   t1 = text.substr(0, kount);

This gets from kount to the last index

   t2 = text.substr(kount, text.length()-1);

The new string or sentence is calculated here

   text = t1 +" "+ t2;

The kount variable is incremented by 1

   kount++;   } The loop ends here

This prints the new sentence

   cout<<"Deobfuscated sentence: "<<text;

<em>See attachment for program file</em>

Download cpp
7 0
3 years ago
Which planet are the most dense
Slav-nsk [51]
The answer is Earth. It says that Earth has a density<span> of 5.51 grams per cubic centimeter on Google, so I am just letting you know, this is from Google. Hope this helps, and good luck!!</span>
5 0
4 years ago
Read 2 more answers
Other questions:
  • Consider a physical address with a page frame size of 2kb. how many bits must be used to represent the page-frame offset of the
    7·1 answer
  • printStars is a method that accepts a single int argument and returns no value. It prints as many stars as indicated by its argu
    9·1 answer
  • Data ____________ refers to any technique that recodes the data in a file so that it contains fewer bits.​
    10·1 answer
  • You can insert a text box from the Insert tab or through the ______ tab in the Microsoft Publisher application.
    15·1 answer
  • People express more. often through the ___. language than written language
    9·2 answers
  • Show the output waveform of an AND gate with the inputs A, B,
    5·1 answer
  • Use a search engine and spot the sponsored results for safer internet day.
    11·1 answer
  • PLS HELP ILL GIVE BRAINLY) enter the answer) desktop publishing software enables users to create products for print or _________
    12·1 answer
  • Select the correct text in the passage.
    12·1 answer
  • What made the master so angry with his servant?​
    13·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!