SUPPOSE YOU ARE DISCUSSING A PROGRAM WITH YOUR LEARNING COACH AND YOU WANT TO KNOW WHY ANYONE WOULD EVER USE LINEAR SEARCH IN A PROGRAM WHEN IT IS SO INEFFICIENT. WHICH OF THE FOLLOWING REASONS MIGHT THE LEARNING COACH GIVE?
A: LINEAR SEARCH IS PERFECT IF THE DATA IS NOT SORTED
B: LINEAR SEARCH IS PERFECT IF THE DATA IS SORTED
C: LINEAR SEARCH IS PERFECT IF THE DATA HAS A PIVOT POINT
D: LINEAR SEARCH IS PERFECT IF THE DATA HAS A MIDPOINT

Answers

Answer 1

Since you want to know why anyone would ever use linear search in a program when it is so inefficient. the reason that  the learning coach need to give is option A. Linear search is perfect if the data is not sorted.

Does linear search require sorted data?

In regards to the use of linear search input data, it is known to be a kind of toll that does not require  data to be sorted that is not to be in sorted way. In binary search input data, ti is one that need data  to be in sorted form. It is also the case with sequential search.

Linear search can be a type that is often used to search for the little or largest value in any form of unsorted list instead of the act of searching for a match.

Note that  It can do the work by keeping records or track of the biggest (or smallest) value and also does the work of updating the needed algorithm.

Therefore, Since you want to know why anyone would ever use linear search in a program when it is so inefficient. the reason that  the learning coach need to give is option A. Linear search is perfect if the data is not sorted.

Learn more about Linear search from

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


Related Questions

Is j++ = =++j a valid expression in c programming​

Answers

Answer:

no, it is not valid

Explanation:

What is the result of running the following Python code:

name = "Joe"
print("Hello, " + Name)

Question 8 options:

Hello, Joe


NameError: name 'Name' is not defined


TypeError: can only concatenate str (not "int") to str


Hello, name

Answers

The result of running the given Python code is: B. NameError: name 'Name' is not defined.

What is Python?

Python can be defined as a high-level programming language that is designed and developed to build websites and software applications, especially through the use of dynamic commands (semantics) and well-defined data structures.

In Python, when a computer programmer or software developer tries to use a function, variable, or module that was not declared in a valid way or does not exist, it would result in a NameError.

In this context, we can reasonably and logically deduce that the result of running the given Python code is NameError: name 'Name' is not defined because the variable "name" is quite different from the variable "Name" and was used outside the function.

PS: The runtime error and correct syntax is shown in the image attached below.

Read more on NameError here: https://brainly.com/question/24657796

#SPJ1

SOME STUDENTS ARE WATCHING A MOVIE ON A STREAMING SERVICE. THE MOVIE FINISHES AND THEY ARE SHOWN RECOMMENDATIONS FOR WHAT TO WATCH NEXT. WHAT TYPE OF ALGORITHM IS THE MOST LIKELY AN EXAMPLE OF?
A: LINEAR PROGRAMMING
B: GRAPHING
C: MACHINE LEARNING
D: GREEDY

Answers

Based on the above case, the algorithm that is the mostly likely example of what is been done is known to be called  GREEDY algorithm.

What is greedy algorithm and example?

The term Greedy is known to be a kind of an algorithmic paradigm that is known to be made up of the solution that is given piece by piece, and it is one that is always selecting the next piece that gives the most obvious as well as the immediate benefit.

Note that this is done if  the problems where selecting is locally optimal and can also leads to global solution and this is seen as the best fit for Greedy. For example lets give the Fractional Knapsack issue.

Note also that this Greedy algorithm can be very greedy with its choices at all of the step to make sure  that the objective function is said to be optimized.

Therefore, based on the above, Based on the above case, the algorithm that is the mostly likely example of what is been done is known to be called  GREEDY algorithm.

Learn more about GREEDY algorithm from

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

how to mitigate a DDos attack

Answers

WHAT IS DDOS MITIGATION?

DDoS mitigation
refers to the process of successfully protecting a targeted server or network from a distributed denial-of-service (DDoS) attack. By utilizing specially designed network equipment or a cloud-based protection service, a targeted victim is able to mitigate the incoming threat.

There are 4 stages of mitigating a DDoS attack using a cloud-based provider:

Detection
- in order to stop a distributed attack, a website needs to be able to distinguish an attack from a high volume of normal traffic. If a product release or other announcement has a website swamped with legitimate new visitors, the last thing the site wants to do is throttle them or otherwise stop them from viewing the content of the website. IP reputation, common attack patterns, and previous data assist in proper detection.

Response - in this step, the DDoS protection network responds to an incoming identified threat by intelligently dropping malicious bot traffic, and absorbing the rest of the traffic. Using WAF page rules for application layer (L7) attacks, or another filtration process to handle lower level (L3/L4) attacks such as memcached or NTP amplification, a network is able to mitigate the attempt at disruption.

Routing - By intelligently routing traffic, an effective DDoS mitigation solution will break the remaining traffic into manageable chunks preventing denial-of-service.

Adaptation - A good network analyzes traffic for patterns such as repeating offending IP blocks, particular attacks coming from certain countries, or particular protocols being used improperly. By adapting to attack patterns, a protection service can harden itself against future attacks.


Choosing a DDoS mitigation service

Traditional DDoS mitigation solutions involved purchasing equipment that would live on site and filter incoming traffic. This approach involves purchasing and maintaining expensive equipment, and also relied on having a network capable of absorbing an attack. If a DDoS attack is large enough, it can take out the network infrastructure upstream preventing any on-site solution from being effective. When purchasing a cloud-based DDoS mitigation service, certain characteristics should be evaluated.

Scalability - an effective solution needs to be able to adapt to the needs of a growing business as well as respond to the growing size of DDoS attacks. Attacks larger than 2 terabits per second (Tbps) have occurred, and there’s no indication that the trend in attack traffic size is downward. Cloudflare’s network is capable of handling DDoS attacks considerably larger than have ever occurred.Flexibility - being able to create ad hoc policies and patterns allows a web property to adapt to incoming threats in real time. The ability to implement page rules and populate those changes across the entire network is a critical feature in keeping a site online during an attack.Reliability - much like a seatbelt, DDoS protection is something you only need when you need it, but when that time comes it better be functional. The reliability of a DDoS solution is essential to the success of any protection strategy. Make sure that the service has high uptime rates and site reliability engineers working 24 hours a day to keep the network online and identify new threats. Redundancy, failover and an expansive network of data centers should be central to the strategy of the platform.Network size - DDoS attacks have patterns that occur across the Internet as particular protocols and attack vectors change over time. Having a large network with extensive data transfer allows a DDoS mitigation provider to analyze and respond to attacks quickly and efficiently, often stopping them before they ever occur.
___________________________________________________

Learn more: https://brainly.com/question/10590797

Have a WONDERFUL day! (:

How will both sender and receiver know the full message arrived successfully?

Answers

They can get crwth and get some reproduced cup levels

............................................,,,,,,,,,,,,,,.

Answers

Answer:

Do you need help with something? Im gladly to help! :)

Answer:

I don't understand you question could you elaborate please?

Most of the devices on the network are connected to least two other nodes or processing
centers. Which type of network topology is being described?

bus

data

mesh

star

Answers

The network topology “mesh” is being described. In terms of computer science, a kind of topology where devices connect to 2+ nodes is called mesh.

7
Select the correct answer from each drop-down menu.
Complete the statement about multimedia file formats and hardware.
MPEG is a common file format for
images
videos
text
This multimedia component can be captured using

Answers

MPEG is a common file format for: videos.This multimedia component can be captured using a Video Camera (Video Recorder).

What is a file?

A file can be defined as a computer resource or type of document that avails an end user the ability to save or record data as a single unit on a computer storage device.

In Computer technology, a sequence which best reflects the size of various files that are used on a computer system, from smallest to largest is:

TextCompressed filesPictureAudio (Music)Video

Also, all multimedia file comprises five major components and these include the following:

TextImagesSoundVideoAnimation

Read more on multimedia files here: https://brainly.com/question/24138353

#SPJ1

Choose the odd one. The key ICT driven Green Growth initiatives in terms of their impact on reducing GHG emissions and fossil fuel consumption are:
O a. Smart motors
O b. Smart grids
O c. Smart buildings
d. Smart bicycles and tricycles
O e. Smart transportation

Answers

The odd one in the key ICT driven Green Growth initiatives in terms of their impact on reducing GHG emissions and fossil fuel consumption are is option b: Smart grids.

What is Green Growth initiatives?

The goal of the green growth work is to make sure that natural assets are said to be deliver into their full economic output in regards to a sustainable basis.

Note that id you look at the options, they are all talking about transportation except grid.

Therefore, The odd one in the key ICT driven Green Growth initiatives in terms of their impact on reducing GHG emissions and fossil fuel consumption are is option b: Smart grids.

Learn more about GHG emissions from

https://brainly.com/question/9912932

#SPJ1

how many optical disc of 720mb storage capacity are needed to store 20gb storage of hard disc​

Answers

The answer would be 700 because you would just subtract the amount u need it’s very simple because of the storage amount

What is the name of the windows os from August 27, 2013 and considered one of the greatest OS'S?

Answers

Answer:

windows 8.1

Explanation:

I need help for javascript shopping cart

Answers

A program that creates a virtual online grocery website

The PHP file

<html>

<head>

       

</head>

<body>

<?php

$servername = "localhost";

$username = "///";

$password = "///";

$dbname = "assignment1";

$conn = new mysqli($servername, $username, $password, $dbname);

if ($conn->connect_error) {

   die("Connection error: " . $conn->connect_error);

}

$product_name = "";

$unit_price = "";

$unit_quantity = "";

$in_stock = "";

$itemId = "";

$showNoItem = "display: none";

$showItem = "";

if (isset($_GET['data'])) {

   $itemId = $_GET['data'];

   $sql = "SELECT product_id , product_name , unit_price, unit_quantity, in_stock  FROM products where product_id=".$itemId;

   $result = $conn->query($sql);

   if ($result->num_rows > 0) {

       

       $showNoItem = "display: none";

      $showItem = "";

       while($row = $result->fetch_assoc()) {

           $product_name = $row["product_name"];

           $unit_price =  $row["unit_price"];

           $unit_quantity =  $row["unit_quantity"];

           $in_stock =  $row["in_stock"];

           break;

       }

   } else {

       $showNoItem = "";

       $showItem = "display: none";

   }

} else {

  $showNoItem = "";

   $showItem = "display: none";

}

?>

<div id="noItem" style="<?php echo $showNoItem?>">Select items from categories on the left.</div>

<div id="itemDiv" style="<?php echo $showItem?>">

  <div class="item-title">

       <span class="item-name"><?php echo $product_name?> </span>

       (<span class="item-quatity"><?php echo $unit_quantity?></span>)

   </div>

   <div class="itemDetail">

       <div class="item-desp">

          <div class="in-stock-div">In Stock: <span class="item-in-stock"><?php echo $in_stock?> </span> </div>

           <div class="price-tag-div">Price: <span class="item-price-red">$<?php echo $unit_price ?></span></div>

           <p></p>

           

           <form action="cart.php" method="get" target="cart" class="order-row" onsubmit="return validate_quantity">

               <input type="number" class="item-quatity-input spin0" min="1" value="1" name="display" id="display" onkeyup="addCartButtonCtrl()" >

               <input type="hidden" name="productId" value="<?php echo $itemId?>">

               <input type="hidden" name="productInfo" value='<?php echo "$product_name($unit_quantity)"?>'>

               <input type="hidden" name="productPrice" value="<?php echo $unit_price ?>" >

               <div class="add-cart-div">

                   <input id="cart-button" class="btn btn-primary" type="submit" value="Add to Cart" title="Add to cart." onclick="updateShoppingCart()">

               </div>

           </form>

       </div>

   </div>

</div>

<?php

$conn->close();

?>

</body>

</html>

Adding the CartButton

addCartButtonCtrl(){

$action = $_GET['action'];

           switch ($action) {

               case 'Add':

                  $product_id = $_GET['productId'];

                   $product_name = $_GET['productInfo'];

                   $unit_price = $_GET['ProductPrice'];

                   

                   if(!isset($_SESSION['cart'])) {

                       $_SESSION['cart']=array();

                   }

                   $index = getItemIndex($product_id);

                  if ($index < 0) {

                       $item_array=array('product_id' => $product_id,

                                         'product_name' => $product_name,

                                         'unit_price' => $unit_price,

}

Read more about programming here:

https://brainly.com/question/23275071

#SPJ1

True or false: A restrictive policy on a firewall denies all traffic by default, and only specifically allowed traffic is permitted into the Network.

Answers

Answer: True

Explanation:

But the firewall may not always be safe enough and will sometimes have a leak.

The simplest way to synchronize a dialogue is by using a _____ block found within the Control category.


still

pause

hold

wait

I NEED THE ANWER

Answers

The simplest way to synchronize a dialogue is by using a still  block found within the Control category.

What is a Dialogue?

The term known as Dialogue is said to be a word that connote a form of a  written or spoken kind of conversational exchange that tends to exist between two or a lot of people, and a literary as well as theatrical form that shows such an exchange.

Note therefore, that The simplest way to synchronize a dialogue is by using a still  block found within the Control category.

Learn more about dialogue from

https://brainly.com/question/6950210

#SPJ1

The table style feature changes the ________ of a table.

a) column width
b) row height
c) appearance

Answers

Answer:

Even before seeing the options I thought appearance so option C all the way.

Good luck ✅

Ace that work

Based off the definition of what a repository is, is one drive considered a secure repository?? Please defend your answer

Answers

Answer:

he Microsoft OneDrive repository allows you to access your documents from Microsoft OneDrive within Moodle. As well as adding basic files, the OneDrive repository link allows you to access your OneDrive live directly from the configuration icon.

Explanation:

Write and test a program that computes the area of a circle. This program should request a number representing a radius as input from the user. It should use the formula 3.14 * radius ** 2 to compute the area, and output this result suitably labeled.

Answers

Answer:

radius = float(input('Radius: '))

area = 3.14 * (radius ** 2)

print(f'Area of the circle is: {area}')

A piece of data that is written into a program's code is a

Answers

Answer:

A piece of data that is written into a program's code is a literal.

Explanation:

JENNIFER IS WRITING AN ALGORITHM TO ANALYZE A PLAY THAT SHE IS READING. WHAT TYPE OF ALGORITHM WOULD BE APPROPRIATE FOR THIS APPLICATION?
A: LINEAR
B: GREEDY
C: GRAPHING
D: MACHINE LEARNING

Answers

Answer: Graphing

Explanation:

Question 2(Multiple Choice Worth 5 points)
(2.02 LC)
When asking the user for input of a numeric value that is negative and has decimal, use the function
float()
int()
print ()
str()

Answers

Answer:

float()

Explanation:

Please provide detailed information about your experience working with computers in an employment setting.

Answers

Answer:

Tell me about which mobile technology you have used in a professional setting.

This question helps employers determine if you are comfortable using mobile devices, like tablets and smartphones. They want to know which particular apps or functions you have used in previous roles. Think about times you have used your mobile device to help you with your job. Explain which apps you are the most familiar with using and why they are important. Try to connect your answer to the tools you might use in this new role.

Example: "In my previous role, I used time-management apps to make sure I was being productive. These little timers and reminders helped me know when to take breaks and when to get focused. I also used my mobile devices to keep track of the stock market. I had several different apps on my tablet to monitor how the market was fluctuating. I even used a trading app to make some of my day trading purchases and bids."

Explain the undesirable characteristics of the DRAM that required the frequent refresh and state the effect of the refresh operation.

Answers

 The  undesirable characteristics of the DRAM that required the frequent refresh and state the effect of the refresh operation.

Memory is known to be Volatile.It slows performancePower consumption is said to be very high when compared to other options.Data in storage cells are those that needs to be refreshed.It is said to be slower when compared to SRAM.

What is the Dynamic Random Access Memory History?

The Dynamic Random Access Memory is known to be a technology that was said to have been made by Robert Dennard.

He was the one who was said to have  invented Dynamic Random Access Memory-DRAM.

It is known to be seen as  one of the most vital tool or developments in regards to computer technology as it is seen as a one-transistor Dynamic Random Access Memory (DRAM).

Therefore,   The  undesirable characteristics of the DRAM that required the frequent refresh and state the effect of the refresh operation.

Memory is known to be Volatile.It slows performancePower consumption is said to be very high when compared to other options.Data in storage cells are those that needs to be refreshed.It is said to be slower when compared to SRAM.

Learn more about DRAM from

https://brainly.com/question/26909389

#SPJ1

Identify two stages of processing instructions

Answers

Answer:

1. Fetch instruction from memory.

2. Decode the instruction.

A data breach is the protection of secure data in an unsecured environment.
True or False.
IT law is a branch of law that provides a legal framework for collecting, storing, and distributing electronic information. True or False.

Answers

Answer: False and True

Explanation:

A data breach is when unsecure data in a secure enviroment gets leaked.

Which statement about the discipline of information systems is true?
A. It involves organizing and maintaining computer networks.
B. It involves connecting computer systems and users together.
C. It involves physical computer systems, network connections, and
circuit boards.
D. It involves all facets of how computers and computer systems
work

Answers

Answer:

C.

Personal computers, smartphones, databases, and networks

Answer:

IT'S B

Explanation:

TRUST ME I HAD TO LEARN THE HARD WAY!!

Using electronic devices has become more convenient and usable as they are seamlessly connected. Which technology has led to this development?

Answers

Wearable technology has become more convenient and usable as they are seamlessly connected.

What is technology?

Technology can be defined as the scientific or technical approaches being applied to create new devices or upgrade the earlier made devices

With the development of new technology there are various things that have been found out or invented, one of them is wearable technology for example what will tell us about the temperature of our body, the pulse rate, as well as the time, call, and messages at the same time. These devices are mobile, lightweight as well as multitasking.

Learn more about technology, here:

https://brainly.com/question/28288301

#SPJ1


1. What criteria must be maintained once a clinical record has been created ?

Answers

The criteria that must be maintained once a clinical record has been created are:

All vital   clinical findings are accurate.A record of the decisions made are true and exact.

What is maintained in a medical record?

Medical records are known to be any kind of document that helps to tell all detail in regards to the patient's history, as well as their clinical findings, their diagnostic test results, medication and others.

Note that  If it is  written rightly, the, notes will help to aid the doctor about the rightness of the treatment of the patient.

Therefore, some of the criteria for high quality form of clinical documentation are they must be :

AccurateExactClearConsistentCompleteReliableLegible, etc.

Therefore, based on the above, The criteria that must be maintained once a clinical record has been created are:

All vital   clinical findings are accurate.A record of the decisions made are true and exact.

Learn more about clinical record from

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

help me with this


Looking at the example below is the type value equal to a string or an integer?

ball.type = "spike";

a. string
b. integer

Answers

The ball.type = "spike"; is a string type option (a) string is correct because the string cannot be translated into an integer but can only be transformed into another string.

What is execution?

The process by which a computer or virtual machine reads and responds to a computer program's instructions is known as execution in computer and software engineering.

It is given that:

ball.type = "spike';

As we know,

The string cannot be translated into an integer but can only be transformed into another string. The string is a character value enclosed in quotations, whereas the Integer is a numeric value.

ball.type = "spike"; is a string type.

Thus, the ball.type = "spike"; is a string type option (a) string is correct because the string cannot be translated into an integer but can only be transformed into another string.

Learn more about the execution here:

brainly.com/question/20493746

#SPJ1

MCP is a series of Microsoft certifications that includes MCSA and MCSE. Question True False

Answers

MCP is a series of Microsoft certifications that includes MCSA and MCSE is a true statement.

Does  MCP includes MCSA and MCSE?

MCP qualifying exams is known to be one that is made up of all of the exams that are said to be needed in regards to the Microsoft Certified Solutions Associate (MCSA), MCSE, as well as in MCSD certifications.

Note that the Microsoft Technology Associate (MTA) exams is one that is not needed to qualify for MCP certification

MCP exams are said to be made up of industry form of recognized and validated kind of valuable IT professional as well as developer technical expertise.

Therefore, MCP is a series of Microsoft certifications that includes MCSA and MCSE is a true statement.

Learn more about Microsoft certifications  from

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

Why is it important for a business to secure the information and data on its computers?

Answers

Answer:

One of the reasons why you must pay importance to your company's data security is because hackers have the ability to automate cyber-attacks. Sometimes referred to as bot attacks, such attacks can be initiated consistently without the hackers lifting a finger on their computers.

Other Questions
what is the significance of the allusion in this passage connect to the central idea of the passage? the allusion is to the mountain where brutus and antony will reside after the battle has been one. the allusion introduces the idea that, although the two men are very powerful and command armies, they are as honored by the romans as the gods. the allusion emphasizes the that the faults that brutus sees in c Customers of a phone company can choose between two service plans for long distance calls. The first plan has a $28 monthly fee and charges an additional$0.14 for each minute of calls. The second plan has a $19 monthly fee and charges an additional $0.19 for each minute of calls. For how many minutes of callswill the costs of the two plans be equal? sayed, k., et al., dish simulator: capturing dynamics of cellular signaling with heterogeneous knowledge, in proceedings of the 2017 winter simulation conference. 2017, ieee press: las vegas, nevada. p. 1-12 Adam's first use of language was in naming Eve. Graph y= -x/3 - 3/2 suddenly i looked around and everything i could see was relative to my ego, like thats my piece of paper and thats my flannel or give it to me or i am. it drove me crackers, i hated everything about my ego, it was a flash of everything false and impermanent, which i disliked. but later, i learned from it, to realise that there is somebody else in here apart from old blabbermouth. who am i became the order of the day. anyway, thats what came out of it, i me mine. the truth within us has to be realised. when you realise that, everything else that you see and do and touch and smell isnt real, then you may know what reality is, and can answer the question who am i? WRITE ABOUT A THEME: INTERACTIONS Giant lycophyte trees had microphylls, whereas ferns and seed plants have megaphylls. Write a short essay (100-150 words) describing how a forest of lycophyte trees may have differed from a forest of large ferns or seed plants. In your answer, consider how the type of forest may have affected interactions among small plants growing beneath the tall ones. explain in your own words what is check What problem might the ceo expect if the company switches to a matrix structure? A cannon is fired horizontally from the top of a platform, with a velocity of 18m/s. If the cannon balllands 162m away from the base of the platform, How long does it take for the cannon ball to hit theground? How tall is the platform?I How might the importance of various abiotic factors differ for aquatic and terrestrial ecosystems? In the mouse camouflage experiment, what is the independent variable? The dependent variable? Explain. Find the value of 3 + x when x = 5? Simplify y to the negative seventh power over x to the negative third power. reilly, a sociology masters student, wants to do research on the homeless in her city. she would like to provide a rich, detailed, inside view of being homeless. what research method should she choose Tom made $171 for 9 hours of work. At the same rate, how many hours would he have to work to make 323 ? What event did the American Industrial Revolution follow . A parabola opening up or down has vertex (0, 1) and passes through (12, -17). Write itsequation in vertex form.Simplify any fractions. Describe the arrangement of the water molecule to molecule with one another Which of the following economic systems is the most common?Group of answer choicescommandmarketmixedtraditional