51 Commits

Author SHA1 Message Date
973e04db0b add euler path functionality too 2019-05-01 16:14:55 -07:00
a4e48514c5 placeholders for path 2019-05-01 14:47:09 -07:00
0921064a2e finally - have working eulerian cycle algorithm 2019-05-01 14:37:26 -07:00
64e0c56f1b hierholzer algorithm - setup steps 2019-04-28 23:24:34 -07:00
b546fa023a reorganize 2019-03-21 04:54:13 -07:00
28442adb60 happy pi day - adding continued fraction pi approx
implements a way of turning continued fraction terms
into convergents (rational approximations)

for funsies, for new pi approximations, and for
pi day 2019-03-14
2019-03-15 12:52:57 -07:00
46b0ca2288 adding segmented sieve (old) 2018-01-15 07:00:16 -08:00
19d92da40e add readme for linked lists. a few notes on constructors. 2017-08-07 19:10:54 -07:00
2cd96dfc33 adding sieve of eratosthenes. 2017-08-07 17:17:50 -07:00
362490db20 add error-checking to euclidean GCD algorithm 2017-08-07 17:00:08 -07:00
fd211c15c1 adding euclidean gcd algorithm 2017-08-07 16:57:41 -07:00
0aa2ce9723 Adding longest common subsequence program Python 2017-08-07 16:50:41 -07:00
c1f409d09c Adding a Python linked list implementation. 2017-06-04 12:55:53 -07:00
f29cbda057 fix link 2017-06-04 12:05:24 -07:00
15ba7638c1 expanxing on tests for dynamic array. 2017-06-04 02:34:21 -07:00
6f3c4fa0b6 update array stack class 2017-05-30 02:29:49 -07:00
b5fcbf939b adding queue adapter class around ArrayDeque 2017-05-30 02:11:23 -07:00
b60c28b4f3 Use 2 temporary stacks to reverse the order of a stack in-place 2017-05-30 01:37:19 -07:00
21b387bb03 expanding docstrings 2017-05-30 01:17:49 -07:00
78f0c69a48 Adding the delete_front and delete_back methods to array-based deque. 2017-05-30 01:04:45 -07:00
8057774128 add docstrings 2017-05-30 00:47:13 -07:00
5de8a27088 fixing indexing details in ArrayDeque. 2017-05-30 00:43:24 -07:00
3a64f46c54 Adding object using floating references in a circularly-utilized array to keep track of the objects in the queue. 2017-05-29 23:54:46 -07:00
b1613aca1d adding example to match delimiters with a one-char stack 2017-05-29 23:02:15 -07:00
319cbc2224 adding ArrayStack type in Python. 2017-05-29 22:18:14 -07:00
0dff888902 updating arrays readme. 2017-05-29 15:14:13 -07:00
d5fec0a879 Question 5-26 find five 2017-05-29 15:12:35 -07:00
655805cd00 clarifying DynamicArray pop method resizing. 2017-05-29 14:08:59 -07:00
07c61e0835 Adding pop method to pop and dynamically shrink.
The new pop method will dynamically shrink the size of the array by a
factor of 2 if the number of elements in the array drops below 1/4 of
the capacity of the array.
2017-05-29 12:26:55 -07:00
ba01251242 updating arrays redme. 2017-05-29 02:39:33 -07:00
ff7df1113c simplify print statement of compute sums 2017-05-29 02:36:18 -07:00
9b88bd1e2b adding script to compute sum of list of lists 2017-05-29 02:35:28 -07:00
d317a1a9b8 adding python implementation of fisher-yates shuffle. 2017-05-29 02:32:21 -07:00
c66bae985b add code to print out heuristic - binary to decimal powers 2017-05-29 02:32:01 -07:00
db3a489fbd fix question number 2017-05-29 02:31:39 -07:00
63e72126ad adding date and link to algorithm complexity readme 2017-05-29 00:44:48 -07:00
2e05ec6b5d adding date and link to readme 2017-05-29 00:44:00 -07:00
50df923683 updating with learnings.g 2017-05-29 00:37:41 -07:00
44d54e464d add script that shows amortized cost of appending items to a list in python. 2017-05-28 23:35:59 -07:00
2cc9f903cf update algorithm complexity readme typos.g 2017-05-28 22:50:52 -07:00
f7cba33a1a Adding notes to arrays readme 2017-05-28 22:50:17 -07:00
c87e65074c CaesarCipher: demonstrates use of basic string indexing operations.
Note that the Python implementation has quite a few differences
from the Java implementation. Things to watch out for:
- use upper()
- don't overthink - use list comprehensions and be smooth with them.
- ord('A') to go from char to int
- chr(k) to to from int to char
- encrypt and decrypt use the alphabet-in-a-String approach,
    both call transform() method and pass it their custom alphabet,
    constructor just needs to initialize the two forward/backward
    alphabets.
2017-05-28 21:50:57 -07:00
dc6e041947 update dynamic array to be quieter. 2017-05-28 21:20:32 -07:00
130fdc94a8 adding dynamic array class, which resizes. 2017-05-28 21:18:20 -07:00
65f628c059 Adding comment headers and putting images in their own dir. 2017-05-28 20:58:12 -07:00
3261e31220 Add experiment and plot script showing lists shrink when items are popped. 2017-05-28 20:45:38 -07:00
762911e895 adding listsize scripts and resulting images. 2017-05-28 20:30:40 -07:00
9e2a70ca21 adding main directory readme file. 2017-05-28 00:31:33 -07:00
a185636ea8 adding experimental analysis of python builtin sorted() function 2017-05-27 16:51:37 -07:00
238b086567 Algorithm analysis exercises and code. 2017-05-27 14:54:23 -07:00