Divisibility and Prime Numbers
47 Questions
0 Views

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to Lesson

Podcast

Play an AI-generated podcast conversation about this lesson

Questions and Answers

If division with remainder gives a remainder of 0, this means that a ______ b.

divides

When a divides b, a is a ______ of b.

divisor

When a divides b, b is ______ by a.

divisible

A positive integer p > 1 is considered a ______ if its only positive integer divisors are 1 and p.

<p>prime</p> Signup and view all the answers

The ______ Theorem of Arithmetic states that each integer > 1 can be expressed uniquely as a product of primes, up to order.

<p>Fundamental</p> Signup and view all the answers

To determine if n is prime, one common algorithm involves trying to divide n by a = 2, 3,... while a is less than or equal to ______.

<p>√n</p> Signup and view all the answers

An algorithm to find a prime divisor of n will find the least a ≤ √n which divides n, or, if no divisor is found among the a ≤ √n, then n itself is ______.

<p>prime</p> Signup and view all the answers

A statement is considered a ______ if it evaluates to true under all possible interpretations of its variables.

<p>tautology</p> Signup and view all the answers

A statement is a ______ if it evaluates to false under every possible interpretation.

<p>contradiction</p> Signup and view all the answers

The logical equivalence $p \rightarrow q \equiv (\neg p) \lor q$ shows that a conditional statement can be expressed using negation and ______.

<p>disjunction</p> Signup and view all the answers

The ______ laws allow for the 'expansion' of combinations of and and or in logical expressions.

<p>distributive</p> Signup and view all the answers

According to the provided text, all truth functions can be expressed in terms of $\land$, $\lor$, and ______.

<p>\neg</p> Signup and view all the answers

Checking whether a formula $\phi$ with n variables is a tautology requires $2^n$ computations, indicating ______ growth with the increase in the number of variables.

<p>exponential</p> Signup and view all the answers

The ______ law, $p \leftrightarrow q \equiv (p \rightarrow q) \land (q \rightarrow p)$, states that $p$ is equivalent to $q$ if $p$ implies $q$ and $q$ implies $p$.

<p>equivalence</p> Signup and view all the answers

Since $p \lor (q \lor r) \equiv (p \lor q) \lor r$, either side can be written as $p \lor q \lor r$, which is similar to how the ______ property works in algebra.

<p>associative</p> Signup and view all the answers

The greatest ______ of positive integers m and n is denoted as gcd(m, n).

<p>divisor</p> Signup and view all the answers

For an integer $n > 1$, if it has a divisor, it has a divisor $ \leq \sqrt{n}$, because for any divisor $a > \sqrt{n}$ we also have the divisor $n/a$, which is $< \sqrt{n}$. This fact is used in recognizing ______.

<p>primes</p> Signup and view all the answers

The ______ algorithm repeatedly divides the greater number by the smaller, keeping the smaller number and the remainder.

<p>Euclidean</p> Signup and view all the answers

In the Euclidean Algorithm, if the remainder r equals ______, the algorithm terminates and returns the last non-zero remainder as the GCD.

<p>0</p> Signup and view all the answers

The ______ Euclidean algorithm allows us to express the greatest common divisor d of two numbers m and n as a linear combination: am + bn = d.

<p>extended</p> Signup and view all the answers

Given the equation am + bn = d, where d is the gcd(m, n), the values a and b can be found by working ______ through the steps of the Euclidean algorithm.

<p>backwards</p> Signup and view all the answers

In the example provided, to find the solution to 237a + 105b = 3 using the extended Euclidean algorithm, substitutions are made based on rearrangements of lines from the original ______ algorithm working.

<p>Euclidean</p> Signup and view all the answers

The Euclidean algorithm determines the greatest common divisor (GCD) of two numbers without needing to find their ______ divisors.

<p>prime</p> Signup and view all the answers

A sentence ψ is a ______ consequence of a sentence φ, if ψ = T whenever φ = T.

<p>logical</p> Signup and view all the answers

The statement φ ≡ ψ means (φ ⇒ ψ) and (ψ ⇒ φ), indicating that logical equivalence is ______.

<p>symmetric</p> Signup and view all the answers

Unlike logical equivalence, the logical consequence () is not ______, meaning that if φ ⇒ ψ, it does not necessarily follow that ψ ⇒ φ.

<p>symmetric</p> Signup and view all the answers

In predicate logic, is a quantifier that means '______' indicating that a statement holds true for all instances of a variable within a specified domain.

<p>for all</p> Signup and view all the answers

In predicate logic, is a quantifier that means '______' indicating the existence of at least one element that satisfies a given condition.

<p>there exists</p> Signup and view all the answers

A predicate, such as P(n) : 'n is prime,' is not a proposition because its truth value depends on the value of n; thus, it acts as a ______ that yields a Boolean value based on its input.

<p>function</p> Signup and view all the answers

The tautology 'if p implies q and p is true then q is true' can be represented using logical notation as an application of ______.

<p>modus ponens</p> Signup and view all the answers

Predicates with one variable are often referred to as ______, while those with two or more variables are commonly called relations.

<p>properties</p> Signup and view all the answers

The language of predicate logic is based on predicate symbols, variables, constants, brackets, $\forall$, $\exists$ and ______.

<p>connectives</p> Signup and view all the answers

A sentence in predicate logic is considered ______ if it evaluates to true under all possible interpretations.

<p>valid</p> Signup and view all the answers

An interpretation of a symbol such as $P(n)$ must include both the range of the variable $n$, as well as stating those $n$ for which $P(n)$ is ______.

<p>true</p> Signup and view all the answers

Unlike propositional logic, there are infinitely many different ______ of each formula in predicate logic.

<p>interpretations</p> Signup and view all the answers

The statement $\forall x \exists y Q(x, y) \rightarrow \exists x \forall y Q(x, y)$ is false if $Q(x, y)$ is interpreted as $x < y$ on the ______ numbers.

<p>real</p> Signup and view all the answers

A sentence $\psi$ is a logical ______ of a sentence $\phi$ if any interpretation that makes $\phi$ true also makes $\psi$ true.

<p>consequence</p> Signup and view all the answers

We write $\phi \Rightarrow \psi$ if $\psi$ is a consequence of $\phi$, which is equivalent to stating that the implication $\phi \rightarrow \psi$ is ______.

<p>valid</p> Signup and view all the answers

Sentences $\psi$ and $\phi$ are considered ______, written as $\psi \equiv \phi$, if each is a consequence of the other.

<p>equivalent</p> Signup and view all the answers

______ expresses the fact that each natural number n can be reached by starting at 0 and going upwards a finite number of times.

<p>Induction</p> Signup and view all the answers

The principle of well-ordering asserts that every non-empty set of natural numbers contains a ______ element.

<p>least</p> Signup and view all the answers

Proofs that 'work downwards' and appeal to well-ordering are sometimes called ______.

<p>infinite descent</p> Signup and view all the answers

To prove that any integer > 2 has a prime divisor, if n is not prime, we let $n_1 < n$ be a ______ of n.

<p>divisor</p> Signup and view all the answers

The formula $1 + a + a^2 + ... + a^n = \frac{a^{n+1} - 1}{a - 1}$ is likely to require ______ induction for its proof.

<p>strong</p> Signup and view all the answers

The statement $¬(p_1 ∨ p_2 ∨ p_3 ∨ ... ∨ p_n) ≡ (¬p_1) ∧ (¬p_2) ∧ (¬p_3) ∧ ... ∧ (¬p_n)$ is an example of ______ Law.

<p>De Morgan's</p> Signup and view all the answers

When proving that each fraction $\frac{n}{m} < 1$ is a sum of distinct fractions with numerator 1, the fractions must be ______.

<p>distinct</p> Signup and view all the answers

In the context of well-ordering and descent, an ______ descending sequence of natural numbers is impossible.

<p>infinite</p> Signup and view all the answers

Flashcards

What signifies that 'a' divides 'b'?

When dividing 'b' by 'a', if the remainder is 0, 'a' divides 'b'.

Divisor/Factor vs. Divisible/Multiple

A number 'a' is a divisor/factor of 'b' if 'b' is divisible/a multiple of 'a'.

What is a prime number?

A positive integer greater than 1 that is only divisible by 1 and itself.

Fundamental Theorem of Arithmetic

Every integer > 1 is a unique product of primes.

Signup and view all the flashcards

Primality Test Algorithm

Test numbers up to the square root of n to see if they divide n.

Signup and view all the flashcards

Finding a Prime Divisor

Either the least a ≤ √n which divides n, or n itself is prime.

Signup and view all the flashcards

How to find a prime divisor of n.

Find the smallest number that divides n.

Signup and view all the flashcards

Why is 1 not a prime number?

The number 1 is not counted as a prime because it would spoil the Fundamental Theorem of Arithmetic.

Signup and view all the flashcards

Greatest Common Divisor (GCD)

The largest positive integer that divides two or more integers without a remainder.

Signup and view all the flashcards

Euclidean Algorithm

An efficient method for computing the GCD of two integers without needing to find their prime factors.

Signup and view all the flashcards

Prime Recognition Rule

If n > 1 has a divisor, it must have one that is less than or equal to the square root of n.

Signup and view all the flashcards

Extended Euclidean Algorithm

Uses the steps of the Euclidean Algorithm in reverse to express the GCD as a linear combination of the original two numbers.

Signup and view all the flashcards

Bézout's Identity

Finding integers 'a' and 'b' such that am + bn = gcd(m, n).

Signup and view all the flashcards

First step Euclidean Algorithm (237, 105)

m = 237, n = 105, find the remainder when m is divided by n.

Signup and view all the flashcards

Euclidean Algorithm Step

If a = 27, b = 24, the next remainder (r) is calculated by r = a - 1 * b = 3.

Signup and view all the flashcards

GCD(237, 105)

The GCD of 237 and 105 is 3, because that's the final non-zero remainder.

Signup and view all the flashcards

Tautology

A statement that is always true, regardless of the truth values of its variables.

Signup and view all the flashcards

Contradiction

A statement that is always false, regardless of the truth values of its variables.

Signup and view all the flashcards

p → q ≡ (¬p) ∨ q

p implies q is equivalent to (¬p) or q. If p is true, q must be true; if p is false, the implication is true regardless of q.

Signup and view all the flashcards

∨ (Disjunction)

The boolean operator that returns true if either or both inputs are true.

Signup and view all the flashcards

∧ (Conjunction)

The boolean operator that returns true only if both inputs are true.

Signup and view all the flashcards

¬ (Negation)

The boolean operator that reverses the truth value of its input.

Signup and view all the flashcards

Logical Equivalence

A statement that is true in all possible interpretations.

Signup and view all the flashcards

p ↔ q ≡ (p → q) ∧ (q → p)

p if and only if q is equivalent to (p → q) ∧ (q → p).

Signup and view all the flashcards

Modus Ponens

If p implies q, and p is true, then q is true.

Signup and view all the flashcards

Logical Consequence (φ ⇒ ψ)

Sentence ψ is a logical consequence of sentence φ if ψ is true whenever φ is true.

Signup and view all the flashcards

Logical Equivalence (φ ≡ ψ)

Both (φ ⇒ ψ) and (ψ ⇒ φ) statements are true.

Signup and view all the flashcards

Predicate

A statement that depends on variables and can be true or false depending on the value of the variables.

Signup and view all the flashcards

Universal Quantifier (∀)

Symbol that denotes 'for all'.

Signup and view all the flashcards

Existential Quantifier (∃)

Symbol that denotes 'there exists'.

Signup and view all the flashcards

Boolean-valued Function

A function that takes an input and returns either true or false.

Signup and view all the flashcards

Property (in logic)

A property of a variable.

Signup and view all the flashcards

Predicate Logic Language

Symbols used in predicate logic, including predicate symbols, variables, constants, brackets, quantifiers (∀, ∃), and connectives.

Signup and view all the flashcards

Valid Sentence

A sentence in predicate logic is valid if it evaluates to true (T) under all possible interpretations.

Signup and view all the flashcards

Interpretation

Assigning meaning to predicate symbols, including the range of variables and truth conditions.

Signup and view all the flashcards

Logical Consequence

A sentence ψ is a logical consequence of φ if every interpretation that makes φ true also makes ψ true.

Signup and view all the flashcards

Equivalence

Sentences ψ and φ are equivalent if each is a logical consequence of the other.

Signup and view all the flashcards

False Predicate Logic Sentence

∀x∃yQ(x, y) → ∃x∀yQ(x, y) is false when Q(x, y) is interpreted as 'x < y' on real numbers, because while for every number there is a larger number, there isn't a number smaller than all numbers.

Signup and view all the flashcards

Induction

Each natural number can be reached by starting at 0 and incrementing a finite number of times.

Signup and view all the flashcards

Well-ordering

The principle that any set of natural numbers has a least element.

Signup and view all the flashcards

Infinite descent

A proof technique that 'works downwards' to show a process must eventually stop.

Signup and view all the flashcards

Prime Divisor Theorem

Integers greater than 2 always have a prime number that divides them evenly.

Signup and view all the flashcards

Proof by descent

A proof technique that relies on the principle of well-ordering. It shows that a statement is true by demonstrating that if it were false, there would be an infinitely decreasing sequence, which is impossible in the natural numbers.

Signup and view all the flashcards

Well-Ordering and Descent

States that to prove a statement for all natural numbers, you need to show it holds for the base case and that if it holds for some case, it must also hold for the previous case. This method relies on the principle of well-ordering to guarantee termination.

Signup and view all the flashcards

Strong Induction

Requires assuming the statement holds true for multiple preceding cases to prove it for the current case. This is useful when the truth of a statement depends on more than just the immediately preceding case.

Signup and view all the flashcards

Proof that √2 is irrational

Is an example of infinite descent, which is a proof technique showing no solution exists by demonstrating that any solution would imply a smaller solution, leading to an infinite sequence of decreasing natural numbers.

Signup and view all the flashcards

Study Notes

  • These are study notes for the MAT1830 course
  • Discrete mathematics studies objects with distinct separated values, like integers
  • Discrete mathematics is vital to computer science
  • The importance of proving results is emphasized

Course Topics

  • Numbers
  • Logic
  • Induction and recursion
  • Sets, functions, and relations
  • Probability
  • Graph theory

Proofs

  • A proof is essentially just a water-tight argument that a certain statement must be true
  • Proofs are useful even when something is believed to be true

Maths in Computer Science

  • Number theory enables secure communication in cryptography
  • Logic is used in digital circuit design and in program control flow
  • Induction and recursion are used to study algorithms and their effectiveness
  • Functions are important in the theory of programming, and relations are vital in database theory and design
  • Probability assists in understanding randomized algorithms
  • Probability enables the creation of systems that deal with uncertain situations
  • Graph theory is used in software for allocation and scheduling problems

Divisors

  • Integer a divides integer b, b = qa for integer q
  • If a divides b:
  • a is a divisor of b
  • a is a factor of b
  • b is divisible by a
  • b is a multiple of a.

Primes

  • Prime number p > 1, positive integer divisors are 1 and p
  • The first few prime numbers are 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43

Fundamental Theorem of Arithmetic

  • Each integer > 1 can be expressed in exactly one way, up to order, as a product of primes
  • If an integer n > 1 has a divisor, it has a divisor < √n

Algorithm for Recognizing Primes

  • Try dividing n by a = 2, 3,... while a ≤ √n

Finding Divisors

  • Finds a prime divisor of n
  • Either the least a <√n which divides n
  • or, if no divisor among the a ≤ √n, n is prime

Euclidean Algorithm

  • Finds the greatest common divisor of positive integers m and n, gcd(m, n), without finding prime divisors.
  • Repeats division of greater number by smaller, keeping the smaller number and remainder

Fact

  • If a, b, and k are integers, then gcd(a - kb, b) = gcd(a, b)

Extended Euclidean Algorithm

  • If the Euclidean algorithm finds gcd(m, n) = d, it can work backwards to find integers a and b such that am + bn = d

Congruences

  • Integers a and b are congruent modulo n, a ≡ b (mod n)
  • n divides a - b

Substitutions with Congruences

  • If a ≡ b (mod n) and b ≡ c (mod n), then a ≡ c (mod n)

Adding, Subtracting, and Multiplying Congruences

  • If a₁ ≡ b₁ (mod n) and a₂ ≡ b₂ (mod n), then:
  • a₁ + a₂ ≡ b₁ + b₂ (mod n)
  • a₁ - a₂ ≡ b₁ - b₂ (mod n)
  • a₁a₂ ≡ b₁b₂ (mod n)

Division

  • If a ≡ b (mod n) and d divides a, b, and n, then a/d ≡ b/d (mod n/d)

Solving Linear Congruences

  • To find integers x that congruences satisfy ax ≡ b (mod n), find d = gcd(a, n)

Procedure if d = 1

  • Find integers x' and y' such that ax' - ny' = b
  • Integers x that satisfy the original congruence are those for which x ≡ x' (mod n).

Procedure if d > 1 and d divides b:

  • Divide through the congruence by d to get the equivalent congruence x ≡ (mod ).
  • Then use the method above on the new congruence.

Procedure if d doesn't divide b:

  • The congruence has no solutions

Modular Inverses

  • Integer a modulo n is an integer x such that ax ≡ 1 (mod n)
  • Such an inverse will exist if and only if gcd(a,n) = 1
  • If inverses exist, they can be found using the extended Euclidean algorithm

Propositional Logic

  • The simplest and most commonly used part of logic

Proposition

  • Any sentence with a definite truth value (true= T or false= F)
  • Propositions are denoted by letters and combined into compound propositions by connectives

Connectives

  • Connectives include ∧ (and), ∨ (or), and ¬ (not)
  • Defined to agree with the most common interpretations of the words "and," "or," and "not"

Truth Tables

  • Used to define connectives and show the truth value of compound propositions under all possible combinations of truth values for their components

Implication

  • Truth function p → q corresponds to "if p then q"
  • p→ q is true when p is false

Other Connectives

  • ↔ (“if and only if”)
  • ∨ (“exclusive or”)
  • The sentence p ↔ q is true exactly when the truth values of p and q agree
  • p ∨ q is true exactly when the truth values of p and q disagree

Symbols

  • A and V are similar to the symbols ∩ and U for set intersection and union

Tautologies and Contradictions

  • A sentence in propositional logic is a formula with variables that can take the values T and F
  • The possible interpretations of are all assignments of values to its variables

If a sentence in propositional logic has value T under all interpretations, it is a tautology

  • Like "always true"

If a sentence in propositional logic has value F under all interpretations, it is a contradiction

  • Like "always false"
  • Whether is a tautology, a contradiction, or neither is checked by computing every value

Logical Equivalence

  • Sentences are logically equivalent if they are the same truth function
  • ↔ q is a tautology

Useful Equivalences: Equivalence Law

  • p ↔ q ≡ (p → q) ∧ (q → p)

Useful Equivalences: Implication Law

  • p → q¬ ≡ (p) ∨ q

Useful Equivalences: Double Negation Law

  • p¬¬ ≡ p

Useful Equivalences: Commutative Laws

  • p∧q≡q∧p
  • p∨q≡q∨p

Useful Equivalences: Distributive Laws

  • p∧ (q ∨ r)≡ (p ∧ q) ∨ (p ∧ r)
  • p∨ (q ∧ r) ≡ (p ∨ q) ∧ (p ∨ r)

Useful Equivalences: De Morgan’s Laws

  • ¬(p ∧ q)≡ (¬ p) ∨ (¬ q)
  • ¬ (p ∨ q) ¬≡ (p) ∧ (q)

Useful Equivalences: Identity Laws

  • p∧T≡p
  • p∨F≡p

Useful Equivalences: Annihilation Laws

  • p∧F≡F
  • p∨T≡T

Useful Equivalences: Inverse Laws

  • p∧ (¬ p) ¬≡ F
  • p∨ (¬ p) ¬≡ T

Useful Equivalences: Absorption Laws

  • p∧ (p ∨ q)≡ p
  • p ∨ (p ∧ q)≡ p

Rules of Inference: Replacement

Any sentence may be replaced by a logically equivalent sentence

Contrapositives

  • x → y ≡ (¬ y) → (¬x)
  • (¬ y) → (¬x) is the contrapositive of x → y

Logical Consequence

A sentence & is a logical consequence of a sentence $, if & = T whenever = T

  • Written as ¢ ⇒ ψ.
  • is the same as to say that → is a tautology, but ¢ ⇒ ψmakes it clearer that we discussing relation between the sentences
  • Any sentence & logically equivalent to is a logical consequence of , but not all consequences of are eqivalent to it

Predicates and Quantifiers: Properties

  • More expressive than propositional logic by admitting predicates
  • Stand for properties or relations

Quantifiers

– ∀ (meaning “for all”) – ∃ (meaning “there exists” or “there is”)

Building Sentences from Predicates

  • To create sentence replace predicate variables by constants
  • Quantifiers and connectives combine logic statements

Alternating Quantifiers: Combination

  • Combinations such as ∀x∃y, “for all x there is a y”
  • common in mathematics
  • can be confusing
  • These help recall the difference between ∀x∃y...and ∃y∀x

Predicate Logic: Valid Sentences

  • The language is based in predicate symbols, variables, brackets, constants, ∀,∃,and connectives

Consequence and equivalence

  • a sentence if is a logical consequence of a sentence ¢ if any interpretation which makes true makes & true
  • Written ¢ ⇒ & if & ia consequence of -this is the same as saying ¢ → is valid

Useful Equivalences: Infinite De Morgan's laws

  • Two important equivalences involving quantifiers
  • ∀xP(x)∃ = x¬P(x)-
  • ∃∀xP(x)= x¬P(x) Two important equivalences involving quantifiers

Mathematical Induction

– Principle used in style of proof called proof by induction, in two steps –Base Step: Proof that required property P true for 0. –Induction Step: Proof that if P(k) true then P(k + 1) is true, for each k ∈ N

###Starting the Base Step higher Not always appropriate to start the induction at 0

Sums of Series

Induction is used to prove that sum formulas are correct

Well-Ordering of Natural Numbers

Every set of natural numbers has a least element.

Proofs by Descent

Equivalent to induction.

Sets

- Vital when expressing mathematics formally A set is an unordered collection of objects called its elements or numbers There are no notions such as order, multiplicity

Subsets

Given A and B, A is a subset of B when every element of A is an element of B

Characteristic functions

Used to specify a subset A of B, which tells which elements of B are in A, which are not

Set and Properties

A and B may only be equal given certain conditions

Operations on Sets: Venn Diagrams

Visualize set operations by showing sets A,B, etc wihin a rectangle representing the univesal set U

Union

A U B of sets A and B consist of the elements in A or B

Intersection ANB

The set of intersection of a function set A and B onsist of the elements in A and B

Difference A — B.

The difference A - B of sets A and B consists of the elements in A and not in B

Cartesian Product A × B

The set of order pairs A x B = {(a + b) : aEA and beA}, where it produces a cartesian product of set A an d B A X B and Multiplication - This also has to do with geometry

Functions: Defining functions

A function consists of a domain , co-domain, and a set of pair from X x Y that has exactly one ordered pair X x X Formally representation = {x E R} and y value

Arrow Notation

  • can define square: R → R or square :R → R≥o
  • functions are usually are not 1 to 1.

One to One Functions

There are some easier to work with because each y in the image of f there is only X e X to give fix 13.2 =Arrow notations

Cartesian Product of two variables

x=R x R → R by sum ( x,y) =x +y; for functions of variables is that output would be numbers from two variables

Sequences

  • An infinite sequence can be viewed as a function f: NR
  • Inputs to f are natural numbers
  • outputs are real numbers

Characteristic functions

  • A subject of N can be represented , for example the set of square represented by function X:N→{0,1} defined by x(n) 1-if n is

Boolean Functions

  • The connectives A , V → B
  • Is completely defined by on T and F
  • They are defined this way so they agreed with truth tables
  • Now we switch cases with this new value Note B →B is a function a single variable , so and it is easy understand

Characteristic function and Subsets of n

Some things have to be a new one Example A and B in order to function a and b in each element A to B of all A and B There are two variables with 359 functions

Composition and Inversion

  • Complicated functions use the following stats square add and cube function in R to R
  • Function f: x →y & =go h( )

Identify Functions

  • Function is called a function on each set

Inverse Function

F:A→A are id to B&

  • F°g & go f ifa

Conditions for Inversion

1 there one to one = one to other 2 log= e

Operations

is particular type of function with code main

Transformations of graph

(a11 @12)x by matrix by dot product of matrix

Inverting 2 variables

Walks

Graph Theory

A graph consists a fine point of objects called vertices together with a set unordered pairs These graphs are normally repped by pictures, The diagrams allow for some graphs to give u all the information with the points and lines

Adjacency Matrix

A matrix whose (i,j) is the quantity of all

The product of matrices dot products from matrices

Degree-A vertex with graph is no number if edges of G that includes

Tree

A graph connected that has no sub graph a circle

Spanning Tree

Has any corrected graph contains as spawning three

  • This is Poved by Induction on the number of edges Base Step : if gas no edge but connected Induction step : If has a spanning Tree

Breadth -first Ording

  • It's a level 0 type It Has one edge for the Roots

Queues

  • The Root vertex is first in the queue Vertices Ajacent are in the head Each vertex doesn't come from the other

Spanning Tree

Is what comes from the root first This Helps the Q, & the tree grow Depth has algo uses Stack.

Studying That Suits You

Use AI to generate personalized quizzes and flashcards to suit your learning preferences.

Quiz Team

Related Documents

Description

Explore the concepts of divisibility, divisors, and prime numbers. Learn about the Fundamental Theorem of Arithmetic and methods for primality testing. Understand tautologies and contradictions in mathematical statements.

More Like This

7 questions

PanoramicRabbit avatar
PanoramicRabbit
Number Theory Basics
8 questions

Number Theory Basics

ZippyWilliamsite3940 avatar
ZippyWilliamsite3940
Number Theory Study Notes
8 questions

Number Theory Study Notes

SimplifiedForsythia avatar
SimplifiedForsythia
Use Quizgecko on...
Browser
Browser