Skip to content

Instantly share code, notes, and snippets.

View ADCDS's full-sized avatar
🥒
afiando a mandioca

Adriel Santos ADCDS

🥒
afiando a mandioca
View GitHub Profile
@ADCDS
ADCDS / boost_integer_sort_example.cpp
Created August 28, 2017 16:01
Simple example of usage of integer_sort
#include <string>
#include <iostream>
#include <boost/sort/spreadsort/spreadsort.hpp>
struct user
{
uint32_t id;
char* name;
};
@ADCDS
ADCDS / lexico.L
Created October 3, 2017 20:54
lexico.L
%{
int nLinha = 1;
%}
identificador [a-zA-Z]([a-zA-Z0-9])*
numero [0-9]+
espaco [ \t]+
novalinha [\n]
%x comentario
Limitações MYSQL em relação ao paralismo de query{
https://dba.stackexchange.com/questions/15146/using-multiple-cores-for-single-mysql-queries-on-debian
https://dba.stackexchange.com/questions/5666/possible-to-make-mysql-use-more-than-one-core
https://dba.stackexchange.com/questions/2918/about-single-threaded-versus-multithreaded-databases-performance/2948#2948
https://dba.stackexchange.com/questions/2918/about-single-threaded-versus-multithreaded-databases-performance/2948#2948
https://dba.stackexchange.com/questions/142416/mysql-to-use-all-cores-20-cores-i-have
}
Possiveis soluções para a limitação do MYSQL{
name: anbn
source code: |
input: '<aaabbb'
blank: ' '
start state: start
table:
start:
<: {write: <, R: I}
I:
a: {write: a, R: B}
name: concat_w
source code: |
input: '<aaaaa'
blank: ' '
start state: start
table:
start:
<: {write: <, R: A}
A:
a: {write: x, R: B}
input: '<aaabaaa'
blank: ' '
start state: start
table:
start:
<: {write: <, R: A}
A:
a: {write: x, R: B}
b: {write: x, R: F}
' ': {write: ' ', L: accept_E}
input: '<0011001001110'
blank: ' '
start state: start
table:
start:
<: {write: <, R: q0}
q0:
0: {write: 0, R: q0}
1: {write: 1, R: q1}
' ': {write: ' ', R: accept}
input: '<11111011101111000'
blank: ' '
start state: start
table:
start:
<: {write: <, R: q0}
q0:
0: {write: 0, R: q0}
1: {write: 1, R: q1}
' ': {write: ' ', R: accept}
input: '<abbabbbaaa'
blank: ' '
start state: start
table:
start:
<: {write: <, R: A}
A:
x: {write: x, R: A}
a: {write: x, R: B}
b: {write: x, R: D}
#Check if a string W is concated with self
#ex of accepted word: abaaba
input: '<abaabaab'
blank: ' '
start state: start
table:
start:
<: {write: <, R: A1}
A1: