This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <string> | |
#include <iostream> | |
#include <boost/sort/spreadsort/spreadsort.hpp> | |
struct user | |
{ | |
uint32_t id; | |
char* name; | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%{ | |
int nLinha = 1; | |
%} | |
identificador [a-zA-Z]([a-zA-Z0-9])* | |
numero [0-9]+ | |
espaco [ \t]+ | |
novalinha [\n] | |
%x comentario |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: anbn | |
source code: | | |
input: '<aaabbb' | |
blank: ' ' | |
start state: start | |
table: | |
start: | |
<: {write: <, R: I} | |
I: | |
a: {write: a, R: B} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: concat_w | |
source code: | | |
input: '<aaaaa' | |
blank: ' ' | |
start state: start | |
table: | |
start: | |
<: {write: <, R: A} | |
A: | |
a: {write: x, R: B} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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: |