First of all to be able to do these types of problems you need to develop an approach to how to tackle these problems. Let's discuss that approach and side by side we'll answer all these problems.
(a) In first problem, you need to find the number of strings that contain character 'a' while there is no other constraint. This problem can be easily done by finding total number of strings and then subtracting those strings which don't have a. For total number of strings each space can be filled with 26 available alphabets, and for strings without 'a' each string space can be filled with 25 available alphabets. Therefore, answer is (26)6-(25)6.
(b) In order to find the words that contain alphabets a and b, we can use the same approach.Required answer= Total number of strings - (Strings with no 'a' + Strings with no 'b') + Strings with no 'a' & no 'b'.
Answer: (26)6-(25)6-(25)6+(24)6.
(c) Now, since, a and b are required to be arranged in consecutive positions with a preceding b thus, we can think of them as one unit only (ab). Thus, now to fill the spaces with the unit (ab) we need to select 2 consecutive spaces out of 6 which can be selected in 5 ways only ((1,2),(2,3),(3,4),(4,5),(5,6)).
1 | 2 | 3 | 4 | 5 | 6 |
Now, for rest of the 4 available places, since all the letters should be different and we have already used a and b so, we are left with 24 letters. So, select 4 letters out of 24 and arrange them in their respective places. Final answer can be written as 5X X 4!.
(d) Now, we have 2 fixed letters a and b and we have to select 4 letters out of 24 and arrange all these letters in 6! ways.
But, in half of these arrangements, a will be preceded by b while in the other half b will be preceded by a. So, final answer can be written as (1/2) X X 6!
animali 32. How many strings of six lowercase letters from the En- glish alphabet contain IS...
10. Determine the number of strings of length 100 of lowercase letters 'a' thru 'z' and numbers 'O' through '9', having the following restrictions: 1. The string can be broken down into an initial part, call it s, and another part, call it t. So, the length of s plus the length of t is 100. 2. The string s consists only of lowercase letters - no numbers. The string t consits only of numbers. 3. The string s is...
a) How many different strings can be made from the word PEPPERCORN when (SHOW WORK & Explaination) i) all the letters are used? ii) at least 6 of the letters are used? b) How many different strings can be made from the letters in AARDVARK, using all of the letters, if all three As must be consecutive? (SHOW WORK & Explaination) c) How many permuations of the 26 letters of the English alphabet do not contain any of the strings...
I know how to do a) and b) but unsure about c) c) Number of strings that (do not not contain "cab" or "bac" BUT may contain repeated consecutive letters), OR (strings that do not contain repeated consecutive letters but may contain "cab" or "bac"). Question 3. (5 marks) A language L is defined over a set of three letters {a, b, c}. A string ordering matters (i.e. "abc" is not equal to "bca"). The length of a string is...
2. How many positive integers less than 1000 are multiples of 5 or 7? Explain your answer using the inclusion-exclusion principle 3. For the purpose of this problem, a word is an ordered string of 5 lowercase letters from the English alphabet (i.e., the 26 letters from a to z). For example, "alpha" and "zfaxr" are words. A subword of a word is an ordered string that appears as consecutive letters anywhere within the given word. For example, "cat" is...
How many subsets are there of 5 letters? How many contain at least one letter, but not all of the letters {a, b, c, d, e}?
i. How many 5-letter passwords (letters may be repeated) can be created from the monkey type- writer from Q1 if it is forbidden for a password to begin and end with the same letter? Answer: 11. Using the monkey typewriter from Q1, how many 8-letter words are there consisting of 8 distinct letters that contain the word 'APE' (as 3 consecutive) letters within the 8-letter word? Answer: iii. Suppose that a group of 9 inhabitants of the Island of Knights...
4. How many permutations of the letters ABCDEFG contain: a) the string GD? b) the string AFC? c) the strings GD and AFC?
How many strings of nine uppercase English letters are there a. if letters can be repeated? b. if no letter can be repeated? c. that start with the letters MN (in that order), if letters can be repeated? d. that start and end with the letters MN (in that order), if letters can be repeated? e. that start or end with the letters MN (in that order), if letters can be repeated?
discrete math '-(oe : length(a) 29, be the alphabet {a,b,c,d,e,f,g) and let 7. Let a) How many elements are in the following set? {ωΣ: no letter in ω is used more than once) b) Find the probability that a random word we has al distinct letters. e) Find the probability that a random word oe has the letter g used exactly once. d) Find the probability that a random word e does not contain the letter g. '-(oe : length(a)...
15to25 15.How many ways are there to seat ten people around a circular table where two seatings are considered the same when every one has the same immediate left and immediate right neighbor? 16.In how many ways can a photographer at a wedding arrange six people in a row, including the bride and groom, if a) the bride must be next to the groom? b) the bride is not next to the groom? 17.How many bit strings of length seven...