   Chapter 9.1, Problem 23ES ### Discrete Mathematics With Applicat...

5th Edition
EPP + 1 other
ISBN: 9781337694193

#### Solutions

Chapter
Section ### Discrete Mathematics With Applicat...

5th Edition
EPP + 1 other
ISBN: 9781337694193
Textbook Problem
1 views

# Suppose A [ 1 ] ,   A [ 2 ] ,   A [ 3 ] ,   .... , A [ n ] is a one-dimensional array and n > 50. a. How many elements are in the array? b. How many elements are in the subarray A [ 4 ] ,   A [ 5 ] , ... A [ 39 ] ? c. If 3 ≤ m ≤ n , what is the probability that a randomly chosen array element is in the subarray A [ 3 ] ,   A [ 4 ] ,   .... ,   A [ m ] ? d. What is the probability that a randomly chosen array element is in the subarray shown below if n = 39 ?    A [ ⌊ n / 2 ⌋ ] ,   A [ ⌊ n / 2 ⌋ + 1 ] ,   .... , A [ n ]

To determine

(i)

To find:

How many elements are in the array?

Explanation

Given:

A [1 ], A [2 ], A [3 ],. . ., A [ n ] is a one-dimensional array and n = 50.

Calculation:

As we know that array begins with 50 and that to nth no...

To determine

(ii)

To find:

How many elements are in the subarray A [4 ], A [5 ],. . ., A 

To determine

(iii)

To find:

What is the probability that a randomly chosen array element is in the subarray A [3 ], A [4 ],. . ., A [ m ]?

To determine

(iv)

To find:

What is the probability that a randomly chosen array element is in the subarray.

### Still sussing out bartleby?

Check out a sample textbook solution.

See a sample solution

#### The Solution to Your Study Problems

Bartleby provides explanations to thousands of textbook problems written by our experts, many with advanced degrees!

Get Started 