CPH Unit 8

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/20

encourage image

There's no tags or description

Looks like no tags are added yet.

21 Terms

1
New cards

Cryptoanalysis

The field of code breaking.

2
New cards

Bruteforce

The method of trying all possibilities, leveraging a computer's speed to perform millions of calculations quickly.

3
New cards

Rail-fence Cipher

A cipher method that is easily broken; its security relies on the number of rails used.

4
New cards

Minmax Pattern

A technique where the decrypted word list with the most known words is remembered by updating maxGoodsoFar.

5
New cards

Row-Major Order

An order of cell storage that saves all values of the first row first, followed by the second row, and so forth.

6
New cards

Column-Major Order

An order of cell storage that saves all values of the first column first, followed by the second column, and so forth.

7
New cards

Substitution Cipher

A more complex cipher that is difficult to crack with brute force, allowing for pattern analysis of frequently used letters.

8
New cards

In-place sort

A sorting method that modifies the existing list without creating a new list or returning a new value.

9
New cards

Frequency Analysis

A method for breaking encryption that analyzes letter frequency in a text.

10
New cards

Pattern Matchings

Finding a word from the dictionary that matches the length and letters of a partially decoded ciphertext.

11
New cards

Regular Expressions

Tools for matching strings that allow the use of wildcard characters, enhancing flexibility in matching.

12
New cards

Capture Group

Characters grouped in a regular expression that help identify which parts of the target word match pattern letters.

13
New cards

.join(list)

String method that returns a string composed of the elements in the list, separated by the string used to call the method

14
New cards

sort(key = none, reverse = false)

Performs an in-place sort of the list— that is, the list is modified Keyword Parameters: key: specifies a function to used for comparing items; default is none, which means to sort on the first element reverse: specifies whether the list should be sorted in reverse (high to low); default is low to high (False)

15
New cards

setDefault(key, default)

If the key is not in the dictionary, insert key with a value of default and return default. If the key is in the dictionary, return the value for the key

16
New cards

zip(list1, list2, …)

Iterator that returns tuples composed of parallel elements of each list

17
New cards

match(pattern, string)

Matches any string in myString that starts with a, b, or c followed by XY followed by any character. Returns a Match on success or None

18
New cards

sub(pattern, replacement, string)

Returns ‘XxyzbgXX’. Like replace, except uses regular expression matching.

19
New cards

findall(pattern, string)

Returns [‘bc’, ‘cb’]. Returns a list of all substrings matching the regular expression

20
New cards

groups()

Returns a tuple of all capture groups matched. matchObj is created by a call to match.

21
New cards

groups(i)

Returns a single capture group at index i. matchObj is created by a call to match.