Discovering Computers ©2018: Digital Technology, Data, and Devices
Discovering Computers ©2018: Digital Technology, Data, and Devices
1st Edition
ISBN: 9781337285100
Author: Misty E. Vermaat, Susan L. Sebok, Steven M. Freund, Jennifer T. Campbell, Mark Frydenberg
Publisher: Cengage Learning
Question
Book Icon
Chapter 7, Problem 6CT
Program Plan Intro

Keyboards:

  • A keyboard is an input device that contains keys. The user enters data and instruction into a computer or mobile device by pressing the keys in the keyboard.
  • All keyboards havetoggle keys, function keys, and navigation keys. Many keyboards contain media control buttons, internet control buttons, and other special keys.
  • Other keyboards may contain a fingerprint reader or a pointing device.

Blurred answer
Students have asked these similar questions
Design a dynamic programming algorithm for the Coin-change problem described below: Input: An amount of money C and a set of n possible coin values with an unlimited supply of each kind of coin. Output: The smallest number of coins that add up to C exactly, or output that no such set exists. The algorithm must take O(n C) time. You must also write and explain the recurrence. Example 1: Input: C24, Coin values = = [1, 5, 10, 25, 50] Output: 6 (since 24 = 10+ 10+1+1 +1 + 1) Example 2: Input: C = 86, Coin values = [1, 5, 6, 23, 35, 46, 50] Output: 2 (since 86 = 46+35+5)
Design a dynamic programming algorithm for the Longest Common Subsequence problem de- scribed below Input: Two strings x = x1x2 xm and y = Y1Y2... Yn Output: The length of the longest subsequence that is common to both x and y. . The algorithm must take O(m n) time. You must also write and explain the recurrence. (I want the largest k such that there are 1 ≤ i₁ < ... < ik ≤ m and 1 ≤ j₁ < ... < jk ≤ n such that Xi₁ Xi2 Xik = Yj1Yj2 ··· Yjk) Example 1: Input: x = 'abcdefghijklmnopqrst' and y = 'ygrhnodsh ftw' Output: 6 ('ghnost' is the longest common subsequence to both strings) Example 2: Input: x = 'ahshku' and y = ‘asu' Output: 3 ('asu' is the longest common subsequence to both strings)
Design a dynamic programming algorithm for the problem described below Input: A list of numbers A = = [a1,..., an]. Output: A contiguous subsequence of numbers with the maximum sum. The algorithm must take O(n) time. You must also write and explain the recurrence. (I am looking for an i ≥ 1 and k ≥ 0 such that a + ai+1 + ···ai+k has the largest possible sum among all possible values for i and k.) Example 1: Input: A[5, 15, -30, 10, -5, 40, 10]. Output: [10, 5, 40, 10] Example 2: Input: A = [7, 5, 7, 4, -20, 6, 9, 3, -4, -8, 4] Output: [6,9,3]

Chapter 7 Solutions

Discovering Computers ©2018: Digital Technology, Data, and Devices

Ch. 7 - Prob. 12SGCh. 7 - Prob. 13SGCh. 7 - Prob. 14SGCh. 7 - Prob. 15SGCh. 7 - Prob. 16SGCh. 7 - Prob. 17SGCh. 7 - Prob. 18SGCh. 7 - Prob. 19SGCh. 7 - Prob. 20SGCh. 7 - Prob. 21SGCh. 7 - Prob. 22SGCh. 7 - Prob. 23SGCh. 7 - Prob. 24SGCh. 7 - Prob. 25SGCh. 7 - Prob. 26SGCh. 7 - Prob. 27SGCh. 7 - Prob. 28SGCh. 7 - Prob. 29SGCh. 7 - Prob. 30SGCh. 7 - Prob. 31SGCh. 7 - Prob. 32SGCh. 7 - Prob. 33SGCh. 7 - Prob. 34SGCh. 7 - Prob. 35SGCh. 7 - Prob. 36SGCh. 7 - Prob. 37SGCh. 7 - Prob. 38SGCh. 7 - Prob. 39SGCh. 7 - Prob. 40SGCh. 7 - Prob. 41SGCh. 7 - Prob. 42SGCh. 7 - Prob. 43SGCh. 7 - Prob. 44SGCh. 7 - Prob. 45SGCh. 7 - Prob. 46SGCh. 7 - Prob. 47SGCh. 7 - Prob. 48SGCh. 7 - Prob. 49SGCh. 7 - Prob. 1TFCh. 7 - Prob. 2TFCh. 7 - Prob. 3TFCh. 7 - Prob. 4TFCh. 7 - Prob. 5TFCh. 7 - Prob. 6TFCh. 7 - Prob. 7TFCh. 7 - Prob. 8TFCh. 7 - Prob. 9TFCh. 7 - Prob. 10TFCh. 7 - Prob. 11TFCh. 7 - Prob. 12TFCh. 7 - Prob. 2MCCh. 7 - Prob. 3MCCh. 7 - Prob. 4MCCh. 7 - Prob. 5MCCh. 7 - Prob. 6MCCh. 7 - Prob. 7MCCh. 7 - Prob. 8MCCh. 7 - Prob. 1MCh. 7 - Prob. 2MCh. 7 - Prob. 3MCh. 7 - Prob. 4MCh. 7 - Prob. 5MCh. 7 - Prob. 6MCh. 7 - Prob. 7MCh. 7 - Prob. 8MCh. 7 - Prob. 9MCh. 7 - Prob. 10MCh. 7 - Prob. 2CTCh. 7 - Prob. 3CTCh. 7 - Prob. 4CTCh. 7 - Prob. 5CTCh. 7 - Prob. 6CTCh. 7 - Prob. 7CTCh. 7 - Prob. 8CTCh. 7 - Prob. 9CTCh. 7 - Prob. 10CTCh. 7 - Prob. 11CTCh. 7 - Prob. 12CTCh. 7 - Prob. 13CTCh. 7 - Prob. 14CTCh. 7 - Prob. 15CTCh. 7 - Prob. 16CTCh. 7 - Prob. 17CTCh. 7 - Prob. 18CTCh. 7 - Prob. 20CTCh. 7 - Prob. 21CTCh. 7 - Prob. 22CTCh. 7 - Prob. 23CTCh. 7 - Prob. 24CTCh. 7 - Prob. 25CTCh. 7 - Prob. 26CTCh. 7 - Prob. 27CTCh. 7 - Prob. 28CTCh. 7 - Prob. 1PSCh. 7 - Prob. 2PSCh. 7 - Prob. 3PSCh. 7 - Prob. 4PSCh. 7 - Prob. 5PSCh. 7 - Prob. 6PSCh. 7 - Prob. 7PSCh. 7 - Prob. 8PSCh. 7 - Prob. 9PSCh. 7 - Prob. 10PSCh. 7 - Prob. 11PSCh. 7 - Prob. 1.1ECh. 7 - Prob. 1.2ECh. 7 - Prob. 1.3ECh. 7 - Prob. 2.1ECh. 7 - Prob. 2.2ECh. 7 - Prob. 2.3ECh. 7 - Prob. 3.1ECh. 7 - Prob. 3.2ECh. 7 - Prob. 4.1ECh. 7 - Prob. 4.2ECh. 7 - Prob. 4.3ECh. 7 - Prob. 5.1ECh. 7 - Prob. 5.2ECh. 7 - Prob. 5.3ECh. 7 - Prob. 1IRCh. 7 - Prob. 2IRCh. 7 - Prob. 4IRCh. 7 - Prob. 5IRCh. 7 - Prob. 1CTQCh. 7 - Prob. 2CTQCh. 7 - Prob. 3CTQ
Knowledge Booster
Background pattern image
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
Enhanced Discovering Computers 2017 (Shelly Cashm...
Computer Science
ISBN:9781305657458
Author:Misty E. Vermaat, Susan L. Sebok, Steven M. Freund, Mark Frydenberg, Jennifer T. Campbell
Publisher:Cengage Learning
Text book image
A+ Guide to Hardware (Standalone Book) (MindTap C...
Computer Science
ISBN:9781305266452
Author:Jean Andrews
Publisher:Cengage Learning
Text book image
CMPTR
Computer Science
ISBN:9781337681872
Author:PINARD
Publisher:Cengage