Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need a C# code that resulted in the bottom output: (an array with 100 random numbers, got sorted, return the index or -1 if

I need a C# code that resulted in the bottom output: (an array with 100 random numbers, got sorted, return the index or -1 if not found an index, calculate the average for 10 runs, determine the average execution time in milliseconds(in C#)

image text in transcribed

Sorted: 1 2 4 6 7 8 8 8 9 13 13 14 14 14 14 15 17 18 19 19 19 19 20 22 24 26 26 26 27 28 30 30 31 32 32 33 35 36 36 36 39 40 41 41 41 42 43 44 44 50 53 55 55 57 57 57 58 60 62 64 64 66 67 69 70 70 71 72 72 73 73 73 74 75 77 77 80 80 80 82 82 84 85 85 86 87 88 88 88 89 89 90 90 92 93 94 94 94 97 99 target=75, index=73, level=7 target=53, index=50, level=6 target=37, index=-1, level=6 target=64, index=59, level=6 target=76, index=-1, level=7 target=14, index=11, level=3 target=25, index=-1, level=6 target=52, index=-1, level=6 target=58, index=56, level=6 target=11, index=-1, level=6 Binary Search: 0.00051 ms, average level-5.9, max level=7 Sorted: 1 2 4 6 7 8 8 8 9 13 13 14 14 14 14 15 17 18 19 19 19 19 20 22 24 26 26 26 27 28 30 30 31 32 32 33 35 36 36 36 39 40 41 41 41 42 43 44 44 50 53 55 55 57 57 57 58 60 62 64 64 66 67 69 70 70 71 72 72 73 73 73 74 75 77 77 80 80 80 82 82 84 85 85 86 87 88 88 88 89 89 90 90 92 93 94 94 94 97 99 target=75, index=73, level=7 target=53, index=50, level=6 target=37, index=-1, level=6 target=64, index=59, level=6 target=76, index=-1, level=7 target=14, index=11, level=3 target=25, index=-1, level=6 target=52, index=-1, level=6 target=58, index=56, level=6 target=11, index=-1, level=6 Binary Search: 0.00051 ms, average level-5.9, max level=7

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Understanding Oracle APEX 5 Application Development

Authors: Edward Sciore

2nd Edition

1484209893, 9781484209899

More Books

Students also viewed these Databases questions

Question

1. Which position would you take?

Answered: 1 week ago