logo

Crowdly

Browser

Add to Chrome

FUNDAMENTOS DE COMPUTACION

Looking for FUNDAMENTOS DE COMPUTACION test answers and solutions? Browse our comprehensive collection of verified answers for FUNDAMENTOS DE COMPUTACION at online.upr.edu.

Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!

How many poker hands of 6 cards can be dealt from a deck of 54 different cards?

0%
0%
0%
100%
View this question

In a computing system, a password consists of 4 characters. Each character can be an uppercase English letter, or a lowercase English letter, or a decimal digit. There is at least one digit in a valid password. How many valid passwords can we create?

View this question

A saleswoman needs to visit 9 cities in Puerto Rico in a sequence.

She wants to first visit San Juan. 

How many possible sequences does she have?

0%
50%
0%
50%
View this question

Suppose a function f: N \to Zf: N \to Z is defined as:

1. Basis step: f(0)f(0) = 6

2. Recursive step: f(i) = 2 \times f(i-1) + 4f(i) = 2 \times f(i-1) + 4 for all i \geq 1i \geq 1

What is f(1)?

View this question

Suppose a function f: N \to Zf: N \to Z is defined as:

1. Basis step: f(0)f(0) = 5

2. Recursive step: f(i) = 3 \times f(i-1) + 4f(i) = 3 \times f(i-1) + 4 for all i \geq 1i \geq 1

What is f(2)?

View this question

Let f( n )f( n ) be the minimal number of steps to solve the Tower of Hanoi game with nn disks. f( n )f( n ) can be defined recursively as follows:

  • The basis step: f(1)=1f(1)=1

  • The recursive step: f( n )=2f(n-1)+1f( n )=2f(n-1)+1, when n > 1n > 1

Use mathematical induction to prove that, for any positive integer nn, f( n ) = 2^n-1f( n ) = 2^n-1.

View this question

Given the following algorithm, matching each statement to the correct sequence for complexity analysis.

procedure bin_exp_mod(b, n, m): b, n and m are positive integers

1    x = 1

2    p = b mod m

3    while (n != 0) do

4        if (n mod 2 == 1)

5            x = (x * p) mod m

6        end of if

7        p = (p * p) mod m

8        n = n div 2

9    end of while

a    return x

View this question

Prove that if nn is odd then n^2 + 5 \equiv 2n^2 + 5 \equiv 2 (mod 44).

View this question

Finding the remainder: -3 mod 5

View this question

Finding the quotient: -53 div 14

View this question

Want instant access to all verified answers on online.upr.edu?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome