A 1000 elements array is used to store integers ascending order . The array is used to search binary search algorithm for the integers 5215 and 7282. How many elements of the array would be examined by the algorithm to locate A). the integers 5215 stored in element 499 B.) the integers in 7282 stored

in element 686.

Answers

Answer 1

Answer:

The overview of the given scenario is described in the explanation section below.

Explanation:

BTS (Binary search tree) tends to be a tree with several nodes noting that perhaps the left sub-tree, along with its leaf, tends to have a key which is less than or equal to anything like the parental node value. The do-tree, including its leaf, seems to have a value greater than those of the key from it's own parent node.Binary search algorithm finds a general vicinity in the collection of O(log n) time complexity items whereby n represents the number of elements in the array.

So the provided has never been the binary search trees of its algorithm.

A. 249

B. 342


Related Questions

For safety, the lights on your vehicle must be in good working condition. Which statement about
checking your lights is true?
A: You must check all your lights often, and promptly replace any burned out boys
B: You should check your lights every six months and replace any burned out bulbs.
C: On modern cars, the lights are so reliable that you almost never have to check them,

Answers

Answer:

The answer is B

Explanation:

An array of int named a that contains exactly five elements has already been declared and initialized. In addition, an int variable j has also been declared and initialized to a value somewhere between 0 and 3. Write a single statement that assigns a new

Answers

Answer:

a[j] = 2 * a[j+1];

Explanation:

The complete statement is to Write a single statement that assigns a new value to the element of the array indexed by j. This new value should be equal to twice the value stored in the next element of the array.

So lets say a is an array of type int which is already declared and initialized.

int a[] = {};

declare an int variable j as int j;

The element of array a indexed by j can be represented as a[j] This means the j-th index of array a

The value to be assigned to a[j] is 2 * a[j+1]; with an assignment operator "= " between a[j] and 2 * a[j+1]; in order to assign 2 * a[j+1]; to a[j]

According to the requirement this new value should be twice the value stored in next element of array. The next element of array is represented by a[j+1] which means j+1 index of array a. This means the element at j+1 index that comes after the element at j-th index a[j].

Value should be twice the value stored in next element of array means multiply the 2 with the next element of array i.e. a[j+1]

Now assign this new value  2 * a[j+1];  to a[j].

A section break would work better than a page break for which task? separating text by topic applying different formatting to text within a document viewing a document as an outline breaking up a small amount of text into several pages

Answers

Answer:

applying different formatting to text within a document

Explanation:

A section break is used to separate a documents into different sections, thereby making it possible to apply different formats to the sections such as having different headers and footers, using a single column and double column for different sections, applying different page numbers e.t.c.

A page break is used to end a page and start a new page even if the old page has not been filled with text.

Why would you want to hyperlink objects into your own Google Slides presentation? (Select all that apply.) Select All Correct Responses For extending the learning experience for students. To make sure the presentation is linear So students can use the Slides for review and can go to additional resources outside of the presentation. To make the presentation more graphically appealing

Answers

The correct answers are A.  For extending the learning experience for students. C. So students can use the Slides for review and can go to additional resources outside of the presentation. D. To make the presentation more graphically appealing

Explanation:

The use of hyperlink objects in presentations means objects such as images, texts, or icons are associated with links or websites students can easily access by clicking on the specific image or element. This might be used in educational contexts to allow students to have a complete learning experience by providing alternative and external sources outside the presentation. For example, if the topic is space hyperlinks to NASA website can be included. This means, hyperlink objects extend learning experiences and provide additional resources (Option A and D).

Besides this, this resource can make a presentation more appealing as links to images, videos, and other visually interesting resources can be included (Option D). However, it also breaks the linearity of the presentation as students will need to move to other websites as they go through the presentation.

Why are the social and ethical consequences of emerging technology hard to
predict?

Answers

Answer:

Technology is rapidly evolving over a short period of time. Which leads to a change in how people perceive and subsequently react to these fast paced advances.

Answer: try this one: It is impossible to see how technology will be applied to situations that have not yet occured.

Explanation: if it’s wrong please tell me

What is the features of Mark 1​

Answers

Answer:

Okay:

Mark I was enourmous in size, measuring 8 feet high, 51 feet long and three feet deep. It weighed 5 tons, used 530 miles of wire and 730,000 separate parts. The operation of these parts was powered and synchronized by a long horizontal rotating shaft. A four horsepower engine drives the mechanical parts.

Harvard Mark I, an early protocomputer, built during World War II in the United States. While Vannevar Bush was working on analog computing at the Massachusetts Institute of Technology (MIT), across town Harvard University professor Howard Aiken was working with digital devices for calculation. He had begun to realize in hardware something like the 19th-century English inventor Charles Babbage’s Analytical Engine, which he had read about. Starting in 1937, Aiken laid out detailed plans for a series of four calculating machines of increasing sophistication, based on different technologies, from the largely mechanical Mark I to the electronic Mark IV.

Explanation:

hope it is helpful to you

i want pizzzzzzzaaaaaaaaaaa

Answers

sameeeeeeeeeeeeeeeeeeeee

What are examples of some Exotic currencies?
A) EURUSD, AUDUSD
B) GBPCHE, EURUSD
C) AUDCHF, NZDJPY
D) MXN, ZAR, HKD

Answers

Answer:

D) MXN, ZAR, HKD

Explanation:

Exotic currencies refer to currency that are used in countries with emerging economies therefore they lack liquidity, are extremely volatile and have very low volumes. The exchange rate of exotic currencies are usually very high because of its lack of liquidity, therefore trading these currencies are expensive. Examples of exotic currencies are South African rand (ZAR), Mexican peso (MXN), Hong Kong dollar (HKD), Chinese yuan (CYN), Turkish lira (TRY) and so on.

"Consider the following code snippet: int number = 0; Scanner in = new Scanner(System.in); System.out.print(""Enter a number: ""); number = in.nextInt(); if (number > 30) { . . . } else if (number > 20) { . . .. } else if (number > 10) { . . . } else { . . . } Assuming that the user input is 40, which block of statements is executed?
a. if (number > 30) { . . .}
b. else if (number > 20) { . . .}
c. else if (number > 10) { . . .}
d. else { . . .}

Answers

Answer:

if (number > 30) {. . .}

Explanation:

This code block uses a simple if-elseif-else control structure to do a comparison on a value.  In this type of control structure, each operation of control is check until the correct condition is met, and once the code executes, it exits the control structure, never touching the remainder of the structure.

In this example, we are fortunate that the value triggers the first part of the control structure with if (number > 30) and will execute that section of code.  Once the code finishes, it will exit the structure, never making it to the other 3 control conditions.

Cheers.

Another problem related to indefinite postponement is called ________. This occurs when a waiting thread (letâ s call this thread1) cannot proceed because itâ s waiting (either directly or indirectly) for another thread (letâ s call this thread2) to proceed, while simultaneously thread2 cannot proceed because itâ s waiting (either directly or indirectly) for thread1 to proceed. The two threads are waiting for each other, so the actions that would enable each thread to continue execution can never occur.

Answers

Answer:

"Deadlock" is the right solution.

Explanation:

A deadlock seems to be a circumstance where certain (two) computer algorithms that share a similar resource essentially prohibit each other during manipulating the asset, leading to both programs withdrawing to operate.This occurs when multiple transfers or transactions block everyone by maintaining locks onto assets that every other activity also needs.

So that the above is the correct answer.

Mention 2 precautionary
measures to be observed
when using ICT tools​

Answers

Answer:

ICT is the abbreviated form of Information and Communication. It included different technologies like mobile phones, computers, USBs etc.

Following are two precautionary measures which should be observed when using any kind of ICT:

Use of Antivirus: It can used to protect anything placed inside the technology especially from hacking and viruses which can create many issues.Backup Data: Creating a backup of the data stored in the device is important as it can be recalled when the device malfunctions. Backup of the data can be created through using USBs, CDs etc or through cloud storage

What will the output of this program be when it is executed? def test_function( length, width, height): print ("the area of the box is ", length*width*height) return length*width*height l = 12.5 w = 5 h = 2 test_function(l, w, h) print ("The area of the box is ", length*width*height)

Answers

Answer: stuff

Explanation:

The database model that uses a series of two-dimensional tables or files to store information is the ________________ model. This database model has become the most popular database structure, as it is used by most microcomputer DBMS packages:

Answers

Answer:

The relational database model

Explanation:

The database model that uses a series of two-dimensional tables or files to store information is the relational structure model.

What is the relational structure model?

The relational model (RM) is known to be set up for database management as it is a method used in managing data via the use of a structure and language that are in line with first-order predicate logic.

Note that The database model that uses a series of two-dimensional tables or files to store information is the relational structure model.

Learn more about database from

https://brainly.com/question/26096799

#SPJ9

______ greetings are used when we talk to friends or family members.

A)Formal

B)Informal

C)Gestures

D)None of these​

Answers

Answer:

B. Informal

Explanation:

You know your parents, greet them normally

Answer:

Informal

Explanation:

What are the useful techniques in program design?

Answers

A broad question, with many answers.

When designing a program you can use:

Setting up requirements, possibly in a use-case form ("as a ... I want to ... so that ...")Mapping the verbs and nouns in your requirements to classes and operations Drawing UML diagrams of the subject matterCreating flow charts and sequence diagrams Identify component boundaries with thin interfaces to keep complexity organized and local

What does “int” means in php code

Answers

Answer:

integer

Explanation:

In the cases of int, byte, long, short (In Java) Can you give the heirachy in ascending order?​

Answers

Answer:

Byte Short Int Long

Explanation:

Byte's 8 bit, short's 16, int's 32, and long's 65.

write down a description of how a magnetic had drive works

Answers

Answer:

This is how a magnetic hard drive works

Explanation:

The hard drive contains a spinning platter with a thin magnetic coating. A "head" moves over the platter, writing 0's and 1's as tiny areas of magnetic North or South on the platter. To read the data back, the head goes to the same spot, notices the North and South spots flying by, and so deduces the stored 0's and 1's.

Hope it helps pls mark as brainliest

What visual practice provides more information about logical relations when creating an ERD

Answers

Answer:

Logical Data Model

Explanation:

An Entity Relationship Diagram (ERD) is a model or a diagram designed to reveal the relationship between various entities such as people, places, objects, and so on within an institution. Entity relationship diagram is also known as Entity relationship model. This model is used to design relational database by various sectors such as education, engineering, business, etc.

ERD is designed using conceptual data model, logical data model, and physical data model.

The visual practice or model that gives more insight into the logical relations among the entity is the logical data model.

The logical data model is used to illustrate more detailed operational and relational data among the entities. It is more detailed than the conceptual data.

So, the correct answer is logical data model.

When testing for current in a cable with eleven ​color-coded wires, the author used a meter to test five wires at a time. how many different tests are required for every possible pairing of five ​wires?

Answers

Multiply 5 times 5, then times 11, and you'll get 275.

Draw a truth table & logic circuit corresponding to the following logic statement
X = 1 if ( ( M is 1 OR N is 1 ) AND ( M is 1 AND N is 1 ) ) OR ( O is NOT 1 )

Answers

Answer:

The truth table, as well as the logic circuit of the given statement, is attached below.

Explanation:

Logical gates seem to be the essential building blocks of just about any computerized signal. It becomes a digital device with one or even more inputs and therefore only single output. The arrangement among outputs and inputs would be focused on this kind of logic. Upon that basis, logic gates were already called as AND, NOT, OR gate, etc.

What is the value of the var variable after the execution of the following snippet of code:
int var;
var = -1;
var = var - 1;
var = var - var;

Answers

Answer:

The value of var is 0

Explanation:

Given:

The code snippet above

Required

Find the value of var after program execution

This line declares var as type integer

int var;

This line initializes var to -1

var = -1;

This line subtracts 1 from var; var - 1 = -1 -1 = -2

var = var - 1;

At this stage the value of var is -2

This line subtracts the value of var from var; i.e. -2 - (-2) = -2 + 2 = 0

var = var - var;

At this stage, the value of var is 0

How to Fix 0xc000007b

Answers

Answer:

Method 1. Restart your computer

The first thing to try is restarting Windows. It sounds too simple, but it sometimes yields results.

Method 2. Update .NET framework

In most cases it's Microsoft .NET framework causing the issues. You can download the latest version of .NET Framework from Microsoft.

When it's installed (or re-installed) reboot and try your app or game again

Method 3. Enable Administrator rights

Try running the game or app with admin rights. To do that, right-click on the shortcut or the actual executable for the game, select Properties and open the Compatibility tab. Tick the 'Run this program as an administrator' box, and click on OK.

Method 4. Reinstall the app or game

You can uninstall and re-installing the game or program you're trying to run - simple but sometimes the quickest and most effective way to get rid of the error.

Method 5. Update Windows

Update Windows. In many cases Windows will automatically update, but to check, head to Control Panel and search for 'Windows Update'.

In later versions, including Windows 10, you can open the new Settings app (just search the Start menu or click the cog icon which appears just above the Windows logo when you click it in the bottom-left of the screen.

In the Settings app, click on Update & Security then you should see a button to check for updates:

Explanation:

Method 6. Run ChkDsk

Run chkdsk by opening cmd (search for it or press Win+R).

In the window type "chkdsk c: /f /r". If it is the primary windows disk, it will ask you to schedule it for next boot. When you restart, it will do a check before get to the login screen. Partitions or other drives can also be checked this way.

Method 7. Reinstall DirectX

This can be the fix for games that won't load. The way to do this depends on your version of Windows and which version of DirectX you need. There are full instructions on Microsoft's website

Hope it's help you. :-)

What does DOS stand for?

Answers

Answer:

Disk Operating System

Explanation:

"DOS is a platform-independent acronym for Disk Operating System which later became a common shorthand for disk-based operating systems on IBM PC compatibles."

What are limitations of AI

Answers

Explanation:

Limitations of artificial intelligence. One of the main barriers to implementing AI is the availability of data. Data is often siloed or inconsistent and of poor quality, all of which presents challenges for businesses looking to create value from AI at scale.

Answer:

Risks and limitations of artificial intelligence in business

Businesses are increasingly looking for ways to put artificial intelligence (AI) technologies to work to improve their productivity, profitability and business results.

However, while there are many business benefits of artificial intelligence, there are also certain barriers and disadvantages to keep in mind.

Limitations of artificial intelligence

One of the main barriers to implementing AI is the availability of data. Data is often siloed or inconsistent and of poor quality, all of which presents challenges for businesses looking to create value from AI at scale. To overcome this, you should have a clear strategy from the outset for sourcing the data that your AI will require.

Another key roadblock to AI adoption is the skills shortage and the availability of technical staff with the experience and training necessary to effectively deploy and operate AI solutions. Research suggests experienced data scientists are in short supply as are other specialised data professionals skilled in machine learning, training good models, etc.

Cost is another key consideration with procuring AI technologies. Businesses that lack in-house skills or are unfamiliar with AI often have to outsource, which is where challenges of cost and maintenance come in. Due to their complex nature, smart technologies can be expensive and you can incur further costs for repair and ongoing maintenance. The computational cost for training data models etc can also be an additional expense.

Software programs need regular upgrading to adapt to the changing business environment and, in case of breakdown, present a risk of losing code or important data. Restoring this is often time-consuming and costly. However, this risk is no greater with AI than with other software development. Provided that the system is designed well and that those procuring AI understand their requirements and options, these risks can be mitigated.

See also Industry 4.0 challenges and risks.

Other AI limitations relate to:

implementation times, which may be lengthy depending on what you are trying to implement

integration challenges and lack of understanding of the state-of-the-art systems

usability and interoperability with other systems and platforms

If you're deciding whether to take on AI-driven technology, you should also consider:

customer privacy

potential lack of transparency

technological complexity

If you're considering writing a tender document to procure AI, you can seek help from the Northern Ireland Artificial Intelligence Collaborative Network(link is external).

AI and ethical concerns

With the rapid development of AI, a number of ethical issues have cropped up. These include:

the potential of automation technology to give rise to job losses

the need to redeploy or retrain employees to keep them in jobs

fair distribution of wealth created by machines

the effect of machine interaction on human behaviour and attention

the need to address algorithmic bias originating from human bias in the data

the security of AI systems (eg autonomous weapons) that can potentially cause damage

the need to mitigate against unintended consequences, as smart machines are thought to learn and develop independently

While you can't ignore these risks, it is worth keeping in mind that advances in AI can - for the most part - create better business and better lives for everyone. If implemented responsibly, artificial intelligence has immense and beneficial potential.

Which of these is a biotic factor in a forest?
Will
O A. Climate
O O
O B. Terrain
O C. Trees
O D. Water​

Answers

Answer: trees

Explanation:

what is the best combos for Nix in Brawlhalla (PS4)?​

Answers

I have never played the game but chose the good ones.

Answer:

sycthe is simple. Do down light and then turn them around. Then do chase dodge to neutral air. its an infinite combo

Explanation:

Write a program that keeps names and emails addresses in a dictionary as key-value pairs. First print all keys with their value using for loop.then the program should display a menu that lets user look up a person’s email address, add a new name and email address, change an existing email address and delete an existing name and email address

Answers

The program keeps names and email addresses in a dictionary as key-value pairs, as written below.

What are codes?

Codes are the language that is used to write programs.

f=open('email.dat','rb')

  d=pickle.load(f)

  f.close()

except:  

  d={}

while True:

  print('\n1. Find a email address')

  print('2. Add name and email address')

  print('3. Change an email address')

  print('4. Delete an email address')

  print('5. Exit\n')

  choice=input('\nEnter a choice: ')

  if choice:

      choice=int(choice)

  else:

      print('\nEnter a number')

      continue  

  if choice == 1:

      while True:

          name=input('\nEnter the name ')

          if name:

              if name in d:

                  print('\n%s is the email id of %s \n' % (d[name],name))

                  break

              else:

                  print('\n Email not found \n')

                  break

          else:

              print('\nName cannot be empty\n')

              continue

  elif choice==2:

      while True:          

          name=input('\nEnter the name ')

          if name:

              break;

else:

              print('\nName cannot be empty \n')

              continue

      while True:          

email=input('\nEnter the email address ')

          if email:

              d[name]=email

              break

          else:

              print('\nEmail cannot be empty\n')

              continue

        elif choice==3:

      while True:          

          name=input('\nEnter the name to change the email address ')

          if name:

              if name in d:

                  email=input('\nEnter the new email address ')

                  d[name]=email

                  print('\nEmail address changed \n')

                  break;

              else:

                  print('\nName not found \n')

                 break

          else:

              print('\nName cannot be empty \n')

              continue

  elif choice == 4:

      while True:          

          name=input('\nEnter the name to remove ')

          if name:

              if name in d:

                  del d[name]

                  print('\nName and Email address removed \n ')

break;

              else:

                  print('\nName not found \n')

                  break

          else:

              print('\nName cannot be empty\n')

continue

  elif choice == 5:

      f=open('email.dat','wb')

      pickle.dump(d,f)

      f.close()

      sys.exit()

  else:

      print('\nEnter a valid choice ')

Therefore, the codes are written above.

To learn more about codes, refer to the link:

https://brainly.com/question/28848004

#SPJ5

what is paragraphing in keyboarding? ​

Answers

Answer:

the pilcrow symbol is paragraphing in keyboard

Answer:

To align paragraphs, follow these steps:

  1.   Position the insertion point into the paragraph or select the paragraphs that you want to align.

  2.   Do one of the following:

Click the alignment button on the Home tab, in the Paragraph group to align left/right, center, or justify the paragraph text or press one of the shortcut keys:

Explanation:

Other Questions
How did the dot-com boom contribute to challenges for the U.S.economy in the mid-1990s? Help! Just a little more Marking Brainliest! 3(x-100)=? Ridley Company estimates that overhead costs for the next year will be $4,057,500 for indirect labor and $600,000 for factory utilities. The company uses machine hours as its overhead allocation base. If 115,000 machine hours are planned for this next year, what is the company's plantwide overhead rate is it true that u have to be kind can u help me plz English has developed over the course of more than 1,400 yearshe earliest forms of English, a group of West Germanic (Ingvaeonic) dialects brought to Great Britain by Anglo-Saxon settlers in the 5th century, are collectively called Old English. Middle English began in the late 11th century with the Norman conquest of England; this was a period in which English was influenced by Old French, in particular through its Old Norman dialect.[9][10] Early Modern English began in the late 15th century with the introduction of the printing press to London, the printing of the King James Bible and the start of the Great Vowel Shift.[11] i don't understand what it means WILL GIVE BRAINLIEST AND 25 POINTS! Find the value of x and y, given the following matrix equation: x= y= Wyatt solved the following equation:x + 1/2 (6x 4) = 6it due today!!! I will give the first answer brainliest. Production of synthetic fibers helps in the conservation of forests comment Does anyone know how to solve this? I don't know how to type it out so Im gonna attach a pic Suppose a stock had an initial price of $70 per share, paid a dividend of $2.30 per share during the year, and had an ending share price of $82.Requried:a. Compute the percentage total return. b. What was the dividend yield and the capital gains yield? Does a fish appear closer or farther from a person wearing swim goggles with an air pocket in front of their eyes than the fish really is? Does the fish see the person's face closer or farther than it really is? Explain your answer. A group of students conducts an experiment to test the amount of sugar that can be dissolved in water at 50F, 100F, and 200F.Which suggestion will help increase confidence in the result?A. Michael suggests timing each addition of sugarB. Ali suggests using her hand to verify the temperature of the waterC. Joel suggests testing salt along with sugar to see if they dissolve at different speedsD. Zander suggests that each student complete an experiment individually and compare results Please help me. 10 points Simply t^12/t^6 There are currently 3000 in the state of Colorado their population is increasing at a rate of 2% per year how many years will it be before there are 6000 moose in the state of Colorado. Round your answer to the nearest year please answer this..... In the diagram, ADE ABC. The ratios and are equal. Besides the revisions listed in the paragraph, what else can Deepak do to strengthen his paper? He should try to keep all of his sentences the same length. He should use more than one technique to integrate his evidence. He should make sure he has a transition for every sentence in the paper. He should avoid extended definitions that provide too much information Given the GCF or LCM, what else do you know about each pair of numbers?a) Two numbers have a GCF of 2.b) Two numbers have an LCM of 2.c) Two numbers have a GCF of 3.d) Two numbers have an LCM of 10. What can you infer about the results of numerical models in 1966 for polar capsmade of water ice? "There is a group of people. The average height of these people is 67 inches. Is it more likely to pick an individual who is more than 68 inches tall or a sample of four people who average more than 68 inches tall