Explanation of Solution
Extract the collection of numbers from the given list whose sum is 3165:
The given list of numbers is,
The target number is 3165.
It is clear that the target value will be the sum of the larger numbers and in this given list the sum of the two largest numbers is less than the required sum. So, it would be appropriate to check for a match from the end of the list.
It can be seen that, the last digit of the target value 3165 is 5. So, it will be appropriate to check the sum of those numbers which last digit is 5.
In the first attempt, we check the sum of numbers 1677,995 and 793 from the list,
The above sum is greater than the target value so, we then select the numbers 1156, 995 and 504 and then perform the addition operation.
Since, this value is less than the target value now we check for groups of 4 numbers and then apply the same operation
Want to see the full answer?
Check out a sample textbook solutionChapter 5 Solutions
Computer Science: An Overview (13th Edition) (What's New in Computer Science)
- Convert the following (show your solution) 1. 255 base 10 _5 L7 2. 10 8 11111111 base 2 16 3. 10 716 base 8 2. 16arrow_forwardMake a BST for the following sequence of numbers45.32.90, 21, 55, 63,98,22,95,74,99,89arrow_forwardsolve binary numbers with solution 4. 11100 + (1011001 – 101011)5. 101000 + 110110 - 111116. 1100110 – 1111 – 110110arrow_forward
- Explain integers?arrow_forwardConvert the following numbers into base ten. (a) 32five (b) 22six (c) 410five (d) 3203five (e) 202five (f) 1222six (g) 202four (h) 404seven (i) 1000two (j) 11011two (k) 88sixteen (l) 707sixteen ?arrow_forwardConvert: from (26)10 to (?)2 from (2343)8 to (?)16 from (0.6800)10 to (?)2 from (0.111)2 to (?)10arrow_forward
- What Is The Law Of Large Numbers?arrow_forwardExpress the following numbers in decimal: (10110.0101) 2 (26.24) 8 (DADA.B) 16 (198) 12arrow_forwardComputer Science Encode the message 1809260214 with the code of Reed and Solomon How many bits are allocated per character? What will be the length of the codeword? How many bad characters in the codeword will be corrected automatically?arrow_forward
- Discrete Mathematics:We have the number 87 in base 10. Use the base conversion algorithm to answer the following questions:Questions:Convert 87 to binary(base 2). Conver 87 to hexadecimal(base 16).arrow_forwardCompute the following sums. 32 + 64 + 128 + . + 4096arrow_forwardFill in the empty spaces in the following table. As you do, please be aware of the following: • All numbers are considered unsigned (positive) for this table All binary answers must have 16 bits You need to put a space after every 4 bits for binary values. All hex values must use capital letters Unsigned Decimal 16-bit Binary ST 0000 0010 1010 1100 Hex 7Earrow_forward
- Systems ArchitectureComputer ScienceISBN:9781305080195Author:Stephen D. BurdPublisher:Cengage Learning