[ 3 / biz / cgl / ck / diy / fa / ic / jp / lit / sci / vr / vt ] [ index / top / reports ] [ become a patron ] [ status ]
2023-11: Warosu is now out of extended maintenance.

/sci/ - Science & Math


View post   

File: 54 KB, 972x259, Capture.jpg [View same] [iqdb] [saucenao] [google]
6325385 No.6325385 [Reply] [Original]

I don't understand how did the author decide so quickyly that 0011101 is not a prime? And 2 starts with 0 and not 1. What am i missing?

>> No.6325402

>>6325385
it's some CS magic.

>> No.6325404

maybe if you read what's before?

>> No.6325412 [DELETED] 
File: 2 KB, 224x250, 00.jpg [View same] [iqdb] [saucenao] [google]
6325412

>>6325385
>CS education

>> No.6325419

>>6325385
author is an idiot. leading zeros have nothing to do with a numbers value and the 0011101 is a binary representation of the decimal number 29 which is prime isn't it?

>> No.6325429

>>6325419
OP here what to do now? I m stuck

>> No.6325432

>>6325385

The author's definition of "representation" is that the string coding a number (except 0) must start with a 1.

The string "0011101" doesn't qualify, so the decision that it is not a prime is easy, because it is not a number.

The string "11101" does represent a number, so further tests are required to determine if it is prime.

>> No.6325436

>>6325385
name of the book, page number. stat!

>> No.6325445

OP Here:
Book: Introduction to automata theory languages and computations by Ullman.
Pg 32

>> No.6325448

>>6325432
This. 0011101 is not a prime because it's not considered a valid number representation in the first place. The author probably uses a representation that allows a bijection between strings of the language and natural numbers.

>> No.6325457

>>6325432
This is wrong right "every integer excepts 0 has a binary representation that begins with 1"

>> No.6325459

>>6325432
this

>> No.6325463
File: 188 KB, 689x778, 1391288931543.jpg [View same] [iqdb] [saucenao] [google]
6325463

>>6325445
>Ullman


Ullman's a fucking genius. Guy's scary smart.

Now, wtf didn't you read what's in the box right above the damn paragraph????

>> No.6325482

>>6325463
He might be genius but his English suck balls

>> No.6325490

>>6325432
He didn't define it. He used it in the sentence like it was a fact.

>> No.6325495

>>6325490
>another fool who can't read

see the whole page above.

>> No.6325506
File: 108 KB, 641x600, 641pxmad_scientistsvg.png [View same] [iqdb] [saucenao] [google]
6325506

WELL OP HERE:
I understood. From the point of view of validating a string of 0 and 1 as either prime or not, author meant that for instance a coder wrote 0011101 in his program then a "lexical analyzer" would discard it declaring it not to be prime for simple reason because of pattern mismatching(Here the pattern to follow is that every number must start with 1 expect 0,Why? because for obvious reason that adding zero before any integer or even binary of that integer is useless. Why would a lexical analyzer keep track of zeros rather it would make a rule that every integer except zero must start with 1). I am god.

>> No.6325508

>>6325490
>>6325482
These.

Ullman does have some problems with clarity sometimes. You have to think of what he is trying to say.

In this case, he says is wrong. He says, "every integer except 0 has a binary representation that begins with 1." This doesn't actually exclude other representations that begin with 0. But that is what he wanted to say. He often gets if-then propositions backwards.

If you go to the websites for his books, he will give credit to people who find mistakes in his books so he can correct them for future editions. I have about 10 corrections there myself. They are mostly about sloppy language like this--ideas that are true, but worded badly to make them false.

>> No.6325511

>>6325495
Thank you mate.
Did anyone notice captcha contains only {l,y,t,r,u,v,h,m,n,c}

>> No.6325515

>>6325508
This

>> No.6325516

>>6325385
>no representation for zero in binary


wtf am I reading

>> No.6325517
File: 232 KB, 795x740, captcha truth.jpg [View same] [iqdb] [saucenao] [google]
6325517

>>6325511
>2014
>still solves whole captcha
>still does free WORK for those evil Google billionaires

come on brah.

>> No.6325533

>>6325516
Clearly not the same thing we are reading.

>>6325517
Except most of that data is used for free services and it is in your own interest to help them.

>> No.6325546

>>6325517
Both words in 4chan captcha are in italics.
And also most of the words don't mean anything in English so there is a high probability that your statement is wrong.

>> No.6325556

>>6325546
Ok, seriously. How come nobody ever read the website of reCAPTCHA?
http://www.google.com/recaptcha/learnmore

>> No.6325559
File: 18 KB, 300x218, 1391291344236.jpg [View same] [iqdb] [saucenao] [google]
6325559

>>6325533
>Except most of that data is used for free services and it is in your own interest to help them.

LOL no. They put adsense on those pages and charge advertisers. You just keep on working for free for billionaires!

>> No.6325564
File: 298 KB, 1037x599, captcha encoder.jpg [View same] [iqdb] [saucenao] [google]
6325564

>>6325517
> bothering with this shit

>> No.6325565
File: 47 KB, 459x249, 1391291453964.jpg [View same] [iqdb] [saucenao] [google]
6325565

>>6325546
>Both words in 4chan captcha are in italics.
>And also most of the words don't mean anything in English so there is a high probability that your statement is wrong.

damn idiots.

>> No.6325577

>>6325559
Can u tell me what my captcha mean "hmfrultr thKlyt"
there is no fucking vowel in it.

>> No.6325587
File: 80 KB, 756x303, 1391291910747.png [View same] [iqdb] [saucenao] [google]
6325587

>>6325385
Option 1: CS people being retarded as usual
Option 2: Little endian numbers and all primes but 2 are odd (start with 1)

Probably #1 as CS is the cesspool of academia

Also, >>>/g/ is that way.

>> No.6325595

>>6325577
>u
>no vowel
>u

>> No.6325610
File: 38 KB, 602x332, Capture1.jpg [View same] [iqdb] [saucenao] [google]
6325610

>>6325565
Previously i had all italics captcha though

>> No.6325621
File: 872 KB, 1260x576, evil google captcha.gif [View same] [iqdb] [saucenao] [google]
6325621

>>6325610
>Previously i had all italics captcha though

Probably because you were not logged into Google's Evil Server botnet.

Pic related.

PS: Don't do free work for billionaires.

>> No.6325629

>>6325559
>2014
>not using an ad filter
Why exactly should I care anyway? They can get as much money as they want from advertisers as long as they don't ask anything from me.

>> No.6325632

>>6325621
wow u made A quick gif for me!!

>> No.6325642
File: 66 KB, 729x698, lead_Larry_Page.jpg [View same] [iqdb] [saucenao] [google]
6325642

>>6325632
/facepalm

please tell me that was sarcasm. I refuse to believe people this dumb post on /sci/

>>6325629
well, then just keep on slaving for billionaires, pleb. it's your time they're stealing.

>> No.6325683

>>6325642
dumb detected

>> No.6325691

>>6325621
WHAT THE FUCK!?

>> No.6325730

>>6325691
>WHAT THE FUCK!?

google IS evil. news at 11.

http://cryptome.org/2013/08/assange-google-nsa.htm

>> No.6327679

>>6325621
Is the gif legit?

>> No.6327708

>>6327679
>Is the gif legit?

yes. try it yourself. log out of jewgle and see for yourself. it's not a secret:

http://googleonlinesecurity.blog
spot.com/2013/10/recaptcha-just-got-easier-but-only-if.html

>> No.6327982
File: 3 KB, 300x57, image.jpg [View same] [iqdb] [saucenao] [google]
6327982

this is not true

btw:
the captcha is not case sensitive
you do not need to type the scanned text AT ALL

>> No.6328109

>>6325621
someone explain this for me

>> No.6328119

>>6325621
> PS: Don't do free work for billionaires.
but I like having free books

>> No.6328127

>>6328109
Computer vision sucks so it's easier to have humans do things like digitizing books.
Google has had a goal for a while of digitizing EVERY book.
It then provides the books for free if they are in public domain

Google has been using captchas to do this goal while providing a turing test to sites like 4chan for authentication.

> Error: This CAPTCHA is no longer valid because it has expired. Please try again.
FUCK YOU GOOGLE

>> No.6328133

>>6328119
>but I like having free books

>implying they're free or that you can download them

Keep on slaving, beta. Do free work for billionaires… your time seems to be worthless to you.

>> No.6328147

>>6328133
>implying they're free or that you can download them
I've both downloaded and read them.

And CAPTCHA's are suppose to be turing tests anyway and computers suck at computer vision.