-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
378 lines (285 loc) · 11.9 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
<!DOCTYPE html>
<html>
<head>
<meta name="generator" content="Hugo 0.135.0">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Tommy Reddad · personal blog</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="A collection of things that interest me. ">
<meta name="author" content="Tommy Reddad">
<meta name="keywords" content="">
<link rel="canonical" href="https://tommyred.dad/">
<link rel="shortcut icon" type="image/png" href="/img/icons/icon-16x16.png">
<link rel="shortcut icon" sizes="16x16" href="/img/icons/icon-16x16.png">
<link rel="apple-touch-icon" href="/img/icons/icon-16x16.png">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/css/bootstrap.min.css">
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script type="text/javascript" src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/js/bootstrap.min.js"></script>
<link
rel="stylesheet"
type="text/css"
href="/style.min.6f4aa6626924a179d64ec47b4c5dd9cd7928ae66992ca21b27a5eb24b6873ca4.css"
integrity=""
crossorigin="anonymous"
/>
<link rel="dns-prefetch" href="https://fonts.gstatic.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css?family=Fira+Sans&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Libre+Baskerville&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Inconsolata&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.css" integrity="sha384-n8MVd4RsNIU0tAv4ct0nTaAbDJwPJzDEaqSD1odI+WdtXRGWt2kTvGFasHpSy3SV" crossorigin="anonymous">
<script defer src="https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.js" integrity="sha384-XjKyOOlGwcjNTAIQHIpgOno0Hl1YQqzUOEleOLALmuqehneUG+vnGctmUb0ZY0l8" crossorigin="anonymous"></script>
<script defer src="https://cdn.jsdelivr.net/npm/[email protected]/dist/contrib/auto-render.min.js" integrity="sha384-+VBxd3r6XgURycqtZ117nYw44OOcIax56Z4dCRWbxyPt0Koah1uHoK0o4+/RRE05" crossorigin="anonymous"></script>
<script>
document.addEventListener("DOMContentLoaded", function() {
renderMathInElement(document.body, {
delimiters: [
{left: '\\[', right: '\\]', display: true},
{left: '$$', right: '$$', display: true},
{left: '\\(', right: '\\)', display: false},
],
throwOnError : false
});
});
</script>
<script type="text/javascript" src="https://d3js.org/d3.v5.min.js"></script>
</head>
<body>
<header class="site-header">
<div class="wrapper">
<a href="https://tommyred.dad/" class="site-title">Tommy Reddad</a>
<nav class="site-nav">
<a class="page-link" href="https://tommyred.dad/about/">About</a>
<a class="page-link" href="https://tommyred.dad/publications/">Publications</a>
<a class="page-link" href="https://tommyred.dad/archive/">Archive</a>
</nav>
</div>
</header>
<main class="page-content" aria-label="Content">
<div class="wrapper">
<div class="home">
<ul class="post-list">
<li>
<header class="post-header">
<h1 class="post-title">
<a class="post-link" href="https://tommyred.dad/post/2024-09-24-coming-soon/">Coming soon: a few exploratory projects</a>
</h1>
<p class="post-meta">
Sep 28, 2024 •
<a href="https://tommyred.dad//tags/web">web</a>
</p>
</header>
<div class="post-content">
<p>I’ve been messing around in my free time doing a bit of coding for fun
and to explore areas of interest. It’s a bit hard to motivate myself
to code during my free time considering coding is also part of my day
job. But my day job is not very technically interesting, so this is
how I get to explore the fun of coding. I’ll briefly describe a few of
these projects which I have in mind.</p>
</div>
<p class="post-continue">
<a href="https://tommyred.dad/post/2024-09-24-coming-soon/">Read more →</a>
</p>
</li>
<li>
<header class="post-header">
<h1 class="post-title">
<a class="post-link" href="https://tommyred.dad/post/2024-08-09-hugo/">Rebuilt this website with Hugo</a>
</h1>
<p class="post-meta">
Aug 9, 2024 •
<a href="https://tommyred.dad//tags/web">web</a>
</p>
</header>
<div class="post-content">
<p>I decided yesterday to rebuild this website using
<a href="https://gohugo.io/">Hugo</a>, while it was originally built using
<a href="https://jekyllrb.com/">Jekyll</a>. In this post I’ll discuss my
experience.</p>
</div>
<p class="post-continue">
<a href="https://tommyred.dad/post/2024-08-09-hugo/">Read more →</a>
</p>
</li>
<li>
<header class="post-header">
<h1 class="post-title">
<a class="post-link" href="https://tommyred.dad/post/2020-11-21-galtonwatson-go/">galtonwatson, a Go module for efficient manipulation of Galton-Watson trees</a>
</h1>
<p class="post-meta">
Nov 21, 2020 •
<a href="https://tommyred.dad//tags/galton-watson">galton-watson</a>, <a href="https://tommyred.dad//tags/trees">trees</a>, <a href="https://tommyred.dad//tags/algorithms">algorithms</a>
</p>
</header>
<div class="post-content">
<p><a href="https://github.com/tommyreddad/galtonwatson"><strong>galtonwatson</strong></a> is a Go module in early development which implements efficient algorithms for the generation and manipulation of Galton-Watson trees. By extension, this tool can be used to generate uniformly random samples from many classes of rooted trees, including:</p>
<ul>
<li>uniformly random binary trees of a given size,</li>
<li>uniformly random d-ary trees of a given size,</li>
<li>uniformly random Cayley trees, i.e., unordered labeled trees of a given size,</li>
<li>uniformly random ordered trees of a given size,</li>
<li>etc.</li>
</ul>
</div>
<p class="post-continue">
<a href="https://tommyred.dad/post/2020-11-21-galtonwatson-go/">Read more →</a>
</p>
</li>
<li>
<header class="post-header">
<h1 class="post-title">
<a class="post-link" href="https://tommyred.dad/post/2020-09-27-burrows-wheeler-revisited/">The Burrows-Wheeler transform, revisited</a>
</h1>
<p class="post-meta">
Sep 27, 2020 •
<a href="https://tommyred.dad//tags/compression">compression</a>, <a href="https://tommyred.dad//tags/algorithms">algorithms</a>
</p>
</header>
<div class="post-content">
<p><a href="/post/2019-08-08-burrows-wheeler/">In my previous post</a>, I discussed the Burrows-Wheeler transform,
and embedded an HTML form on the page which dynamically computed the forward and inverse Burrows-Wheeler transforms with an additional move-to-front compression step. My initial implementation of this form was done in pure JavaScript with no particular care for
efficiency, and in particular used \(O(n^2 \log n)\) space and time. The new implementation on
<a href="/post/2019-08-08-burrows-wheeler/">the same page</a> reduces this complexity to \(O(n \log n)\) time
and \(O(n)\) space, making the form usable on larger texts. It is possible, as noted in the paper of
<a href="https://arxiv.org/pdf/1201.3077.pdf">Gil and Scott</a>, that this time complexity can be reduced to \(O(n)\) by using linear time
suffix array construction algorithms.</p>
</div>
<p class="post-continue">
<a href="https://tommyred.dad/post/2020-09-27-burrows-wheeler-revisited/">Read more →</a>
</p>
</li>
<li>
<header class="post-header">
<h1 class="post-title">
<a class="post-link" href="https://tommyred.dad/post/2019-08-08-burrows-wheeler/">The Burrows-Wheeler transform and move-to-front compression</a>
</h1>
<p class="post-meta">
Aug 8, 2020 •
<a href="https://tommyred.dad//tags/compression">compression</a>, <a href="https://tommyred.dad//tags/algorithms">algorithms</a>
</p>
</header>
<div class="post-content">
<style type="text/css">
.bit-content {
display: inline;
}
.bit-count {
display: inline;
font-family: Monaco, Menlo, Consolas, "Courier New", DotumChe, monospace;
}
.bit-count-label {
font-weight: 700;
display: inline;
padding-right: 10px;
}
.alphabet-content {
display: table-cell;
width: 100%;
border: 1px solid #e1e1e1;
margin-bottom: 16px;
font-family: Monaco, Menlo, Consolas, "Courier New", DotumChe, monospace;
}
.alphabet {
display: table;
width: 100%;
}
label {
font-weight: 700;
display: table-cell;
width: 1px;
padding-right: 10px;
}
textarea {
width: 100%;
display: block;
height: 300px;
border: 1px solid #e1e1e1;
margin: 0 0 10px;
padding: 10px;
font-family: Monaco, Menlo, Consolas, "Courier New", DotumChe, monospace;
}
.tab-pane {
min-height: 300px;
}
.nav-tabs {
margin: 19px 0px 18px;
visibility: visible;
border-bottom: 1px solid #ddd;
}
.nav-tabs > li.active {
font-weight: 700;
}
.nav-tabs > li {
float: left;
margin-bottom: -1px;
}
.tab-content {
margin-bottom: 10px;
}
</style>
<ul class="nav nav-tabs">
<li class="active"><a data-toggle="tab" href="#input-contents">Input</a></li>
<li><a data-toggle="tab" href="#bwt-contents">BWT</a></li>
<li><a data-toggle="tab" href="#mtf-contents">MTF</a></li>
<li><a data-toggle="tab" href="#bwt-mtf-contents">BWT+MTF</a></li>
</ul>
<div class="tab-content">
<div id="input-contents" class="tab-pane active">
<textarea id="input" placeholder="Text to compress..."></textarea>
</div>
<div id="bwt-contents" class="tab-pane">
<textarea id="bwt" placeholder="Burrows-Wheeler transform to invert..."></textarea>
</div>
<div id="mtf-contents" class="tab-pane">
<div class="alphabet">
<label for="mtf-Sigma">Alphabet: </label>
<input class="alphabet-content" type="text" id="mtf-Sigma">
</div>
<textarea id="mtf" placeholder="MTF-compressed binary to decode..."></textarea>
<div class="bit-count">
<div class="bit-count-label">Bit count: </div><div class="bit-content" id="mtf-count"></div>
</div>
</div>
<div id="bwt-mtf-contents" class="tab-pane">
<div class="alphabet">
<label for="bwt-mtf-Sigma">Alphabet: </label>
<input class="alphabet-content" type="text" id="bwt-mtf-Sigma">
</div>
<textarea id="bwt-mtf" placeholder="BWT+MTF-compressed binary to decode..."></textarea>
<div class="bit-count">
<div class="bit-count-label">Bit count: </div><div class="bit-content" id="bwt-mtf-count"></div>
</div>
</div>
</div>
<script type="text/javascript" src="/js/2019-08-08-burrows-wheeler/bwt.js"></script>
The above form implements algorithms to code and decode from the
move-to-front compression scheme, with or without an additional
application of the Burrows-Wheeler transform. These extremely slick
algorithms blew my mind when I first heard of them. They are currently
in use, among other places, in
[bzip2](https://en.wikipedia.org/wiki/Bzip2) file compression.
</div>
<p class="post-continue">
<a href="https://tommyred.dad/post/2019-08-08-burrows-wheeler/">Read more →</a>
</p>
</li>
<div class="pagination">
<a class="next" href="/page/2/">« Older</a>
</div>
</ul>
</div>
</div>
</main>
<footer class="site-footer">
<div class="wrapper">
<p>
© 2024 - Tommy Reddad
</p>
<p>
Theme inspired by <a href="https://github.com/yous/whiteglass">whiteglass</a>.
</p>
</div>
</footer>
</body>
</html>