Challenge '3280'

Post Reply
newbsauce
Posts: 7
Joined: Mon Sep 08, 2008 6:42 am

Challenge '3280'

Post by newbsauce »

Challenge '3280' [Coding]

What's the most common 9-letter word in RFC 3280?


You just..have to know it? >.>; I fail.
MerickOWA
Posts: 182
Joined: Mon Apr 07, 2008 5:54 pm
Location: HkRkoz al KuwaiT 2019 HaCkEr 101

Post by MerickOWA »

I wrote a program to read the RFC 3280 out of a text file and count the number of times each 9-letter word appears.

I suppose you could guess ;)
newbsauce
Posts: 7
Joined: Mon Sep 08, 2008 6:42 am

Post by newbsauce »

MerickOWA wrote:I wrote a program to read the RFC 3280 out of a text file and count the number of times each 9-letter word appears.

I suppose you could guess ;)
oh. lol XD im so noobish. thanks.
Kuzmin
Posts: 10
Joined: Sat Jul 19, 2008 3:20 pm

Post by Kuzmin »

You could also use a word frequency calculator as the one used in some other challenge, and then look through the most popular words, should be easier than writing programs specifically for these challenges :)
canine
Posts: 190
Joined: Sun Sep 14, 2008 5:38 am

uhh

Post by canine »

You could also a shell script.

Something along the lines of:

Code: Select all

wget "http://tools.ietf.org/rfc/rfc3280.txt" -O - | <commands go here> |less
I snipped the relevant code, but it's just standard GNU tool commands. Filter out the punctuation and whitespace, filter for the appropriate word length, etc.

If you're doing any sort of processing of data, ordinary GNU tools or things like perl and sed are your friends.
executioner
Posts: 1
Joined: Wed Oct 29, 2008 1:53 pm

Post by executioner »

i tried to analyze it using an online service, but the 9-letter word occuring most often is not the answer... would be "standards"
the_impaler
Posts: 61
Joined: Wed Apr 30, 2008 3:31 am

Post by the_impaler »

Usually, RFCs have list of authors at the beginning with their addresses.
You could simply ask one of the authors.
Atsutane
Posts: 3
Joined: Tue Oct 28, 2008 5:31 pm

Post by Atsutane »

the_impaler wrote:Usually, RFCs have list of authors at the beginning with their addresses.
You could simply ask one of the authors.
They'd sure be happy to be asked that question every few days ... ;)

executioner, Well I solved that challenge just yesterday and the most used 9-letter word in fact is the answer.
Minor
Posts: 2
Joined: Wed Jul 08, 2009 6:26 pm

Post by Minor »

Heh, I guess it from first try!

LOL!
1nFinity865
Posts: 2
Joined: Fri Oct 02, 2009 1:28 pm

Post by 1nFinity865 »

Uhhh, maebe i shouldnt be doing this in java...
i added " **END** " to the end of the file and started writing my java app:

Code: Select all

import java.io.*;
public class RFC
{
    public static void main(String[] args) throws IOException
    {
        BufferedReader br = new BufferedReader(new FileReader("rfc.txt"));
        String line = br.readLine();
        StringBuffer sb = new StringBuffer();
        while(line != "**END**")
        {
            sb.append(line);
            line = br.readLine();
        }
    }
}
well... this is what happens...

Code: Select all

java.lang.OutOfMemoryError
... oops
Zeta
Posts: 62
Joined: Thu Apr 16, 2009 3:37 pm

Post by Zeta »

If all else fails, read the manual.

I would advise you to do some reading, covering equality of strings in java and the behavior of readLine when the end of stream is reached.
1nFinity865
Posts: 2
Joined: Fri Oct 02, 2009 1:28 pm

Post by 1nFinity865 »

ok, thanks - got it to work eventually!

to those who can't get the answer.. i'll give you a hint: It has NINE LETTERS!!!!! :lol:
bookbook0089
Posts: 1
Joined: Sat Nov 28, 2009 3:31 pm

Post by bookbook0089 »

thanks pal...this is useful
Masti6
Posts: 55
Joined: Sat May 15, 2010 12:04 pm
Location: Finland, Nurmes

Post by Masti6 »

You can use an online word counter as well.
Post Reply