Skip to content

Instantly share code, notes, and snippets.

View Kimundi's full-sized avatar

Marvin Löbel Kimundi

  • Dortmund, Germany
View GitHub Profile
marvin@tp-marvin-arch ~/d/a/p/b/src> ./alphabet_count ~/uni/pg/sacabench/external/datasets/downloads/english
char [ 0]: 13, 0%
char [ 7]: 1, 0%
char [ 9]: 15432, 0%
char [ 10]: 43894765, 1.98%
char [ 12]: 117, 0%
char [ 13]: 22, 0%
char [ 14]: 1, 0%
char [ 20]: 2, 0%
char [ 21]: 1, 0%
@Kimundi
Kimundi / playground.rs
Created December 10, 2018 14:41 — forked from rust-play/playground.rs
Code shared from the Rust Playground
use std::alloc::{GlobalAlloc, System, Layout};
use std::sync::atomic::{AtomicIsize, Ordering};
struct AllocationTracker {
mem: AtomicIsize
}
impl AllocationTracker {
const fn new() -> Self {
AllocationTracker {
Cloning into 'stxxl_external'...
Already on 'master'
/home/marvin/dev/arbeit/pwm/build/stxxl_external-prefix/src/stxxl_external/lib/common/verbose.cpp: In function ‘void stxxl::print_msg(const char*, const string&, unsigned int)’:
/home/marvin/dev/arbeit/pwm/build/stxxl_external-prefix/src/stxxl_external/lib/common/verbose.cpp:44:38: warning: ‘snprintf’ output may be truncated before the last format character [-Wformat-truncation=]
snprintf(tstr, sizeof(tstr), "[%d.%02d:%02d:%02d.%06d] ",
^~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/marvin/dev/arbeit/pwm/build/stxxl_external-prefix/src/stxxl_external/lib/common/verbose.cpp:44:17: note: ‘snprintf’ output between 21 and 39 bytes into a destination of size 23
snprintf(tstr, sizeof(tstr), "[%d.%02d:%02d:%02d.%06d] ",
~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
int(t / (24 * 60 * 60)),
text:
sdsd
+--------+----+------+--------+
| Suffix | SA | Rang | Unique |
+--------+----+------+--------+
| d$ | 3 | 0 | True |
| ds | 1 | 1 | True |
| sd | 0 | 3 | False |
| sd | 2 | 3 | False |
text:
sdsd
+--------+----+------+--------+
| Suffix | SA | Rang | Unique |
+--------+----+------+--------+
| d$ | 3 | 0 | True |
| ds | 1 | 1 | True |
| sd | 0 | 3 | False |
| sd | 2 | 3 | False |
caabaccaabacaa$$$$$$$$$$$$$$$$
count 0
count 0
count 2
count 1
count 0
count 1
count 0
count 1
count 0
caabaccaabacaa$$$$$$$$$$$$$$$$
+--------+----+------+
| Suffix | SA | Rang |
+--------+----+------+
| $$ | 14 | 0 |
| a$ | 13 | 1 |
| aa | 1 | 4 |
| aa | 7 | 4 |
| aa | 12 | 4 |
| ab | 2 | 6 |
Text: asdf.txt
Characters: 57
Memory peak text: 14798 B, 0 MiB
wm_dd_pc: Parallel wavelet matrix construction with 8-bit alphabet (using domain decomposition and prefix counting).
Memory peak algo: 13782 B, 0 MiB
wt_dd_pc: Parallel wavelet tree construction with 8-bit alphabet (using domain decomposition and prefix counting).
Memory peak algo: 13566 B, 0 MiB
Text: asdf.txt
Characters: 57
Memory peak text: 14798 B, 0 MiB
wm_dd_pc: Parallel wavelet matrix construction with 8-bit alphabet (using domain decomposition and prefix counting).
Memory peak algo: 13782 B, 0 MiB
wt_dd_pc: Parallel wavelet tree construction with 8-bit alphabet (using domain decomposition and prefix counting).
Memory peak algo: 13566 B, 0 MiB
\begin{table}[]
\begin{tabular}{@{}l|l|l|l|l@{}}
\toprule
Referenz Systeme & S. unabhägige Parameter & \multicolumn{3}{c}{S. abhängige Paramter} \\
& & Strategie 1 & \dots & Strategie N \\
\midrule
System 1 & \dots & \dots &\dots & \dots \\
\dots & & \dots & \dots & \dots \\
System M \dots & \dots & \dots & \dots& \dots \\
\bottomrule