your colleague has 15 years of log files full of performance data. the data needs to be sorted, but the file siz

Answers

Answer 1

Given that your colleague has 15 years of log files full of performance data. the data needs to be sorted, using a merge sort to divide the data into smaller chunks, sort them recursively, then merge results to produce the final sorted file with all data is given below:

The Merge Sort

import java.util.*;

public class Main {

public static void merge(String data)

{

String arr[]=data.split(";");

if(arr[0]==null||arr[1]==null) {

System.out.println(data);

return ;

}

String sorted_result=""; // to store the sorted alhanumeric character separated by comma

String pair=""; // to store the comparision pair

int i=0,j=0;

while(i<arr[0].length()&&j<arr[1].length())

{

char a=arr[0].charAt(i);

char b=arr[1].charAt(j);

if(a<b) // if the character of first array is smaller than second

{

sorted_result+=a+",";

pair+="("+a+","+b+") ";

i=i+2;

}

else

{

sorted_result+=b+",";

pair+="("+b+","+a+") ";

j=j+2;

}

}

while(i<arr[0].length())

{

char a=arr[0].charAt(i);

sorted_result+=a+",";

i+=2;

}

while(j<arr[0].length())

{

char b=arr[0].charAt(j);

sorted_result+=b+",";

j=j+2;

}

sorted_result=sorted_result.substring(0, sorted_result.length()-1);

System.out.println(sorted_result);

System.out.println(pair);

}

public static void main(String[] args) {

String input1="1,4,7,8;2,3,5,6";

merge(input1);

System.out.println();

String input2="H,L,M,P,P,R,S,b,d,i,n,o,o,p,s;1,5,5,6,7,8,C,U,V,V,W,f,h,r,s";

merge(input2);

System.out.println();

String input3="B,E,E,F,J,N,O,P,U,W,D;G,J,L,N,R,S,V,X,Y";

merge(input3);

}

}

Read more about programming here:

https://brainly.com/question/23275071

#SPJ1


Related Questions

What software allows you to define vms and manage resource allocation and sharing among vms on a host computer?

Answers

Software that creates and manages virtual machines is called a hypervisor, also referred to as a virtual machine monitor or VMM (VMs). By virtually sharing its resources, such as memory and processing, a hypervisor enables a single host computer to support numerous guest virtual machines (VMs).

Using a hypervisor that supports numerous virtual machines has several advantages:

Speed: Quick creation of virtual machines is made possible by hypervisors.Efficiency: One physical server can be used more effectively when multiple virtual machines are running on one physical machine's resources thanks to hypervisors.Flexibility: Operating systems and the applications that go with them can run on a variety of hardware thanks to bare-metal hypervisors. Portability: Multiple operating systems may coexist on the same physical server thanks to hypervisors (host machine)

Learn more about hypervisor https://brainly.com/question/20892566

#SPJ4

how would one declare a variable err that can appropriately receive returned value of a cuda api call?

Answers

A person can declare a variable err that can appropriately receive returned value of a CUDA API call by the use of cudaError t_err;

What is Proper CUDA Error Checking?

Proper CUDA error checking is known to be very vital for creating the CUDA program development to be very smooth as well as to be successful.

Note that Missing or incorrectly found CUDA errors could lead to problems in the making as well as waste a lot of time of one trying to debug.

Therefore, A person can declare a variable err that can appropriately receive returned value of a CUDA API call by the use of cudaError t_err;

Learn more about programming from

https://brainly.com/question/16936315

See full question below

How would one declare a variable err that can appropriately receive returned value of a CUDA API call?

int err;

cudaError err;

cudaError t_err;

cudaSuccess t_err;

for which reasons does the nurse manager understand that frequent individual and group communication is critical to employee satisfaction? (select all that apply.)

Answers

The reasons that the nurse manager understand that frequent individual and group communication is critical to employee satisfaction is that

It motivates all staff to do their jobs well and go "above and beyond."It provides a shared vision for all staff to work towards. It gives the opportunity for the manager to clarify policies and organizational changes.

What is meant by employee satisfaction?

Employee satisfaction is known to be a term that connote a wider form of a term that is said to be used by the HR industry.

It is one that tends to tell or describe the way that is said to be satisfied or content an employees can be with elements such as their jobs, their employee experience, as well as the organizations they work for.

Therefore, The reasons that the nurse manager understand that frequent individual and group communication is critical to employee satisfaction is that

It motivates all staff to do their jobs well and go "above and beyond."It provides a shared vision for all staff to work towards. It gives the opportunity for the manager to clarify policies and organizational changes.

Learn more about employee satisfaction from

https://brainly.com/question/10735969

#SPJ1

See options below

It motivates all staff to do their jobs well and go "above and beyond."

It provides a shared vision for all staff to work towards. It gives the opportunity for the manager to clarify policies and organizational changes.

It hinders movement

question 2 a data analyst is working at a small tech startup. they’ve just completed an analysis project, which involved private company information about a new product launch. in order to keep the information safe, the analyst uses secure data-erasure software for the digital files and a shredder for the paper files. which stage of the data life cycle does this describe?

Answers

The stage of the data life cycle which the information provided describes is: destroy.

Who is a data analyst?

A data analyst can be defined as an expert or professional who is saddled with the responsibility of inspecting, transforming, analyzing, and modelling data with the sole aim of discovering useful information, providing insights, and creating informed conclusions, so as to support decision-making.

What is DLC?

DLC is an abbreviation for data life cycle and it can be defined as a strategic methodology that defines the sequence of stages that a given unit of data goes through from inception (collection) to its eventual deletion (destruction) at the end of its useful life.

In Computer technology, there are six (6) steps in a data life cycle and these include the following:

PlanCaptureManageAnalyzeArchiveDestroy

Based on the information provided, we can reasonably infer and logically deduce that stage of the data life cycle which is being described is destroy because the analyst used a secure data-erasure software for the digital files and a shredder for the paper files.

Read more on data life cycle here: brainly.com/question/28039445

#SPJ1

What are F stops? and shutter speeds?

Answers

Answer: A F stop is a camera setting corresponding to a particular f-number.

Shutter speeds is the speed at which the shutter of the camera closes.

Sadly, I'm just here for the points...

which of the following should go in the place of /* missing line */ to get this input from the user and store it in the variable favoritemeal?

Answers

The option that  should go in the place of /* missing line */ to get this input from the user and store it in the variable favoritemeal is streetName = scan.nextLine();

What is coding?

Coding is known to be a term that is often called computer programming.

It is said to be one that tells the way that a computer user do communicate with computers.

Note that  Code is one that tends to inform a computer the right actions to take, as well as writing code that is  like making a set of instructions. By learning to be able to write code, you can be able to inform the computers what to do, the way to do it and how to behave in a much faster means.

Therefore, The option that  should go in the place of /* missing line */ to get this input from the user and store it in the variable favoritemeal is streetName = scan.nextLine();

Learn more about data input  from

https://brainly.com/question/28526849

#SPJ1

The following code is to be used to get the name of a street from the user.

Scanner scan = new Scanner(System.in);

String streetName;

System.out.println("Enter Street name");

/ missing line /

Which of the following should go in the place of / missing line / to get this input from the user and store it in the variable streetName?

what is an attack on a nosql database compromised by data manipulation when the input is not sanitized by the application?

Answers

An attack on a nosql database compromised by data manipulation when the input is not sanitized by the application is called XML injection.

What is  XML  injection?

XML injection is known to be a kind of action that occurs if  a computer user is known to have supplied input that has not escaped or be sanitized prior to been added to a web application's XML documents or as at the time that they are processed and executed.

Therefore, An attack on a nosql database compromised by data manipulation when the input is not sanitized by the application is called XML injection.

Learn more about XML injection from

https://brainly.com/question/14469511

#SPJ1

Given what you have just learned, move the events to put them in chronological order.
The tablets were discovered.
Intro
Gilgamesh became a legend.
Gilgamesh ruled Uruk in2700 BCE.
Done

Answers

The movement of the events to put them in chronological order are:

IntroGilgamesh ruled Uruk in 2700 BCE.The tablets were discovered.Gilgamesh became a legend.When did Gilgamesh ruled Uruk?

Gilgamesh was a hero king of the Sumerian city kind of state of Uruk from ( c. 2900 – 2350 BC).

One of the oldest pieces of literature that has ever been discovered is an epic poem called "The Epic of Gilgamesh" that dates back to ancient Mesopotamia. It began as a collection of Sumerian myths and poetry written in cuneiform about the early third or late second millennium BCE, which were later combined into a lengthier Akkadian poem (the most complete version existing today, preserved on 12 clay tablets, dates from the 12th to 10th Century BCE).

Note that It tells the tale of Gilgamesh, the mythical hero-king of Uruk, and his half-wild companion Enkidu as they embark on a number of perilous missions and adventures. After Enkidu's passing, Gilgamesh subsequently sets out to find the key to immortality. It likewise tells the comparable tale of a great flood.

Learn more about Gilgamesh from

https://brainly.com/question/3700155
#SPJ1

Answer:

gilgamesh ruled uruk in 2700 BCE

gilgamesh became a legend

the tablets were discovered

Explanation:

just answered it on edge

To what extent does w. e. b. dubois's argument still apply to the contemporary prison system?

Answers

W. E. B. DuBois's "The Souls of Black Folk" is an important work that continues to resonate today. In it, DuBois argues that the black experience in America is fundamentally different from that of whites, and that this difference is the result of racism. He further argues that the black community must develop its own institutions and culture in order to thrive.

DuBois's arguments are as relevant today as they were when he wrote them. The contemporary prison system is a clear example of how racism continues to impact the lives of black Americans. Black people are disproportionately incarcerated, and the conditions in many prisons are abysmal. The lack of access to education and opportunities for rehabilitation means that many black Americans are effectively condemned to a life of poverty and despair.

DuBois's work is a call to action for black Americans to create their own institutions and to fight for their rights. The contemporary prison system is a clear example of how much work still needs to be done.

Learn more on black Americans here:

https://brainly.com/question/25102754

#SPJ4

Flash memory is a type of _____________ memory. a) Primary b) RAM c) Secondary d) All of these​

Answers

Answer:

Flash memory is a type of _ram_ memory.

Explanation:ram

flash memory is a type of Ram memory

If you ping a device and no echo reply comes back before the default time, ping will respond with a __________ message.

Answers

If you ping a device and no echo reply comes back before the default time, ping will respond with a request timed out  message.

What does the request timed out mean?

The term 408 Request Timeout is known to be a kind of an HTTP response status code that helps to tell if a give server do not get  a full  request message inside the server's that is known to be allotted timeout period.

Note that the server need to decided to end  the connection instead of wait. Therefore, If you ping a device and no echo reply comes back before the default time, ping will respond with a request timed out  message.

Learn more about request timed out from

https://brainly.com/question/4671999

#SP1

click on file to save the changes in a file save print save as close​

Answers

Answer:

your answer is same save

A service that lets you store data in a remote location over the internet is called.

Answers

Answer: Cloud storage

Explanation: Cloud storage allows users to transmit data to a remote location and store it in a storage system there. It also allows users to access their stored data through the internet as well.

what does this mean PLEASE?

Answers

Answer:

the controls of which you're your suppose to use or where your suppose to put it

Explanation:

because i'm not sure what you're your showing me

which of the following is not a part of MS window at about Taskbar status by ribbon​

Answers

Answer:

the right answer is taskbar

Explain the value of simplifying abstractions. (1 point)
O Make a complex process or system easier to use.
O Prevent a complex system from growing in complexity.
O Make a complex system function more efficiently.
O Prevent a complex system from having errors.

Answers

The explanation of the value of simplifying abstractions is to Make a complex process or system easier to use.

What is a Complex Process?

This refers to the collection of systems that functions together as separate parts.

Hence, we can see that The explanation of the value of simplifying abstractions is to Make a complex process or system easier to use and this is because the abstractions are used to make the complex process easier to understand.

Therefore, the importance of simplifying abstractions is to make complex processes easier to understand, process and execute.

Read more about simplifying abstractions here:

https://brainly.com/question/23690790

#SPJ1

Python is an example a blank while blank is an example of a software framework.

Answers

Answer:

programming language.
Middleware

Explanation:

A fundamental part of market research is studying what your competitors have done so that you don't copy anything from those projects and create something wholly original.

A.
True

B.
False

Answers

Answer:

I'll go with option A. True. Hope this helps please mark me BRAINLIEST

How do digital cameras produce images?
O by exposing chemicals on film to light
O by exposing semiconductors to light
O by exposing magnetic tape to light
O by exposing an electronic sensor to light

Answers

by exposing an electronic sensor to light

Answer:

by exposing an electronic sensor to light

Explanation:

EDGE 2023

When used as parameters, these types of variables allow a function to access the parameter's original argument: group of answer choices
a. reference
b. floating-point
c. counter undeclared
d. none of these

Answers

When used as parameters, reference types of variables allow a function to access the parameter's original argument.

A parameter in the definition of a function is a variable. Since it is a placeholder, it has no real meaning. A value given while calling a function is known as an argument. Arguments, in a sense, take the place that the parameters once occupied.

Actual arguments are those that are given to a function call. The calling function defines these arguments. These are the variables or expressions that a subprogram call's argument list refers to.

To describe the entire population under study, a parameter is utilised. For instance, we are interested in learning the typical length of a butterfly. This information about the total butterfly population makes it a parameter.

Learn more about parameter:

https://brainly.com/question/15316903

#SPJ4

Which attack method involves encoding portions of the attack with unicode, utf-8, or url encoding?

Answers

Obfuscation Application is the attack method involves encoding portions of the attack with unicode, utf-8, or url encoding

The most common method of obfuscating is an attack is on encode portions of it with Unicode, UTF-8, or URL encoding. Unicode is a way of displaying special characters, numbers and letters so that they can be displayed correctly regardless of the application.

Obfuscation application is the type of attack where attackers normally work hard to hide their attacks and remain undetected. Host-based IDSs and networks are always on the lookout for indicators of well-known attacks, prompting attackers to seek alternative methods of remaining undetected.

Learn more Obfuscation application: brainly.com/question/12947118

#SPJ4

maria is writing a policy that defines her organization's data classification standard. the policy designates the it assets that are critical to the organization's mission and defines the organization's systems, uses, and data priorities. it also identifies assets within the seven domains of a typical it infrastructure. which policy is maria writing?

Answers

Based on the above description, the policy that maria is known to have been writing is said to be Asset classification policy.

What is the meaning of Asset classification policy?

The term known as Asset classification policy is known to be a kind of a policy that is said to be used to state out all of a firm or an organization's data classification standard.

Note that it is one that often informs us what the information Technology  assets are as they are known to be critical to the organization's mission.

The use of policy is one that helps in guiding the day to day running of any business.

Therefore, It helps us to be able to state the organization's systems, uses, as well as data priorities and as such, based on the above description, the policy that maria is known to have been writing is said to be Asset classification policy.

Learn more about Asset classification policy from

https://brainly.com/question/5581152
#SPJ1

If you have created users with administrator privileges on your windows 7 or linux systems, why bother creating other user accounts?

Answers

The reason one bother creating other user accounts so that others such as friends can be able to make some changes that you want them to do and it is also to make sure that an administrator does not inadvertently make alterations  without knowing that is any form of administrative change.

What Does Administrative Privileges Mean?

The term Administrative privileges are known to be the ability to have or create some major changes to any given system, such as an operating system.

Note that based on the above, The reason one bother creating other user accounts so that others such as friends can be able to make some changes that you want them to do and it is also to make sure that an administrator does not inadvertently make alterations  without knowing that is any form of administrative change.

Learn more about administrator privileges from

https://brainly.com/question/26389124

#SPJ1

Microsoft sql server is a​ ________ for large mainframes and midrange computers.

Answers

The server is a rational DBMS for large mainframes and midrange computers.

What is SQL?

Structured Query Language is the official name of SQL.

SQL is the most used language for communicating with relational databases. SQL can be used to create, find, edit, and delete database records. SQL can also be used for a wide range of auxiliary activities, including database maintenance and optimization.

Some important uses of SQL are :

It facilitates user access to data stored in the RDBMS system.It aids in data description.Not only that, but it enables you to specify and manipulate a database's specific data.You may build and modify databases and tables using SQL.

Hence, SQL server is a rational Data base management system for large mainframes and midrange computers.

To get more information about SQL :

https://brainly.com/question/20264930

#SPJ1

Which type of systems are characterized by functions that have the ability to resume normal operational conditions after an external disruption?

Answers

The type of systems that  are characterized by functions that have the ability to resume normal operational conditions after an external disruption is option A. High-resiliency.

What is resiliency of a system?

This is known to be the ability of a system to be able to prepare for as well as adapt to altering  conditions and be able to withstand as well as  recover rapidly from any form of disruptions.

Therefore, The type of systems that  are characterized by functions that have the ability to resume normal operational conditions after an external disruption is option A. High-resiliency.

Learn more about  resiliency from

https://brainly.com/question/1084396
#SPJ1

Which type of systems are characterized by functions that have the ability to resume normal operational conditions after an external disruption?

A. High-resiliency

B. Hardened

C. Remote

D. Local

All major operating systems for desktop computers, as well as handheld devices, include software that will open and display the ____ file format.

Answers

All major operating systems for desktop computers, as well as handheld devices, include software that will open and display the PDF file format. Adobe created the Portable Document Format (PDF) in 1992 to deliver documents, including text formatting and graphics, in a way that is independent of application software, hardware, and operating systems. PDF is now standardized as ISO 32000.

PDF files can contain more than just plain text and images. They can also include logical organizing elements, interactive features like annotations and form fields, layers, rich media (including video content), three-dimensional objects made using U3D or PRC, and a variety of other data formats. The PDF specification also adds support for digital signatures, file attachments, and metadata to help workflows that require these features.

Learn more about PDF https://brainly.com/question/28001981?

#SPJ4

What term does don norman use to describe a a story that puts the operation of the system into context, in that, it weaves together all of the essential components, providing a framework, a context, and reasons for understanding?.

Answers

what do you mean ??

didn't get your question ⁉️

A conceptual model is a term that puts the operation of the system into context.

What is Conceptual Model?  

A conceptual model is a representation of a system that is built using concepts and ideas. Many disciplines, including the sciences, socioeconomics, and software development, use conceptual modeling.

It's critical to distinguish between a model of a concept and a conceptual model when utilizing a conceptual model to express abstract notions. To put it another way, while a model is fundamentally unique, it also carries an idea of what it stands for—what a model actually is as opposed to what it represents.

A conceptual model should, in general, achieve the following four key goals:

improving comprehension of the representative system.

Encourage effective communication amongst team members about system details.

Give system designers a point of reference to collect system requirements.

For future use, record the system.

Hence, A conceptual model is a term that puts the operation of the system into context.

To know more about Conceptual Model follow the link.

https://brainly.com/question/20514959

#SPJ5

which types of data are stored on a computer using bits? \text{i}istart text, i, end text. numbers \text{ii}iistart text, i, i, end text. english text files \text{iii}iiistart text, i, i, i, end text. chinese text files

Answers

Answer:

I, II, and III

Explanation:

Computers use bits to store every type of data

keeps track of all the documents in a business, ensuring that the right people have access to them and that the correct version is available

Answers

Document Management System (DMS): keeps track of all the documents in a business, ensuring that the right people have access to them and that the correct version is available.

What is information security?

Information security can be defined as a preventive practice which is typically used to protect an information system (IS) that use, store or transmit information, from potential theft, attack, damage, or unauthorized access, especially through the use of a body of technologies, encryption, frameworks, processes and network engineers.

What is Document Management System (DMS)?

Document Management System (DMS) can be defined as a software technology that is designed and developed to keep track of all the documents that are owned by a business, while ensuring that only the right people have access to them, including making the correct version available.

Read more on Document Management System here: https://brainly.com/question/4295265

#SPJ1

Which type of program can hide itself from normal inspection and detection? trojan horse stealth trojan spyware rootkit

Answers

A type of software program which can hide itself from normal inspection and detection is: D. rootkit.

What is a malware?

A malware can be defined as any type of software program or file that is designed and developed to be intentionally harmful to the host computer, server, or network, especially for the purpose of wreaking havoc, damage and destruction after gaining an unauthorized access.

In Computer technology, a rootkit is a type of trojan which refers to a set of tools or software program that is designed and developed to gain access and control of an end user's computer system without revealing its presence i.e it hides its presence.

Read more on rootkit here: https://brainly.com/question/15061193

#SPJ1

Other Questions
Read the poem "nothing gold can stay" by robert frost. natures first green is gold, her hardest hue to hold. her early leafs a flower; but only so an hour. then leaf subsides to leaf. so eden sank to grief, so dawn goes down to day. nothing gold can stay. which line from the poem contains an allusion? "then leaf subsides to leaf" "so eden sank to grief" "so dawn goes down to day" "nothing gold can stay" Question select all the correct answers. what are the three vs of big data? -volume -validity -variety -velocity -vitality Atp is necessary for life because ________. it is the principal energy carrying molecule in a cell List two requirements for a fulfilling job A carbonated soft drink that has a ph of 3 is ________ times more acidic than water. Nicholas drinks 8 ounces of milk for every 5 cookies, he eats. If he eats 20 cookies, how many ounces of milk does he drink?Plss show work and explain or I wont get credit. What type of transformation is this? Be specific. a nurse responds to an external disaster in a large city involving an explosion at a shopping mall. numerous victims require treatment. which victim will the nurse attend to first? Ebony earned scores of 70 , 72 , 89 , 92 , 89 and 80 on six math tests. Determine her score on the seventh test if her average for the seven tests was 80? Enter your answer as a whole number What is the name of the current off the Georgia coast? what is the main role of functional departments in organizations where projects are the dominant form of business, such as construction and software? a new supermarket, the deluxe mart, collates its sales data using scanners at the point of purchase. it uses this data to identify the products to stock and the type of content and media to use to attract customers. in this scenario, the deluxe mart is most likely using PLS HELP ASAP !! Review the information below and answer the question that follows.The national government created by the Articles of Confederation- one legislature each state given one vote all laws must be approved by 2/3 of states cannot create taxes cannot create an army or a navy- no president- no national court systemBased on the information above, what two conclusions can be drawn about most Americans after they won independence? Choose the two best answers. aThey wanted to avoid many of the problems experienced under British rule. bThey prioritized national unity over the independence of the states. cThe sought to preserve the principle of limited government. dThey believed that a foreign invasion was the greatest threat facing the country. eThey preferred laws that were consistent across the thirteen states.Question 2 (1 point)What was the primary reason for why many Americans grew skeptical about the Articles of Confederation as America's first form of government? aState governments did not have enough autonomy to pass laws that were unique to their states. bThe national government was given too much power to overrule laws passed by state legislatures. cThe economy of the United States was too dependent upon the British economy. dThe national government was powerless to address complex problems facing the country. which change in the west was brought about by rail road expansion? A teacher sitting in her rolling chair pushes against the wall and moves in the opposite direction what law is this When you add the value of Aurora's benefits to her salary, how much is she earning per year? hich of the following is written correctly? in june 1776, thomas jefferson wrote the first draft of the declaration of independence, and it was formal To open a margin account for a partnership, all of the following documentation is required except? a new account form b customer's agreement c partnership agreement d joint account agreement Find the measure of the indicated angle. consider a coupon bond that has a par value of $1 comma 000 and a coupon rate of 12 %. the bond is currently selling for $1 comma 080.80 and has 2