Overclock.net - Overclocking.net
     
 
Home Gallery Reviews Blogs Register Today's Posts Mark Forums Read Members List


Go Back   Overclock.net - Overclocking.net > Software, Programming and Coding > Coding and Programming

Reply
 
LinkBack Thread Tools
Old 10-16-07   #21 (permalink)
Programmer
 
kdbolt70's Avatar
 
intel ati

Join Date: May 2007
Location: Walled Lake, MI
Posts: 1,112

Rep: 127 kdbolt70 is acknowledged by manykdbolt70 is acknowledged by many
Unique Rep: 0
Folding Team Rank: 195
Trader Rating: 1
Default

I'm now in my third iteration of a spell checker. The first was only in C, using C strings, the second was in C++ but with out the <string> class, so we had to write our own, and our own ordered container. Now we get to use all of the standard library, but have tons of new features. Ugh... so much work. In DB class we're simulating a database using C++. And in my Java class I have some new project out but I didn't go to class so I have no idea what it is .

3 programming classes = getting owned. Off to the library to study for my DB exam tomorrow
__________________

~M Hail to the Victors M~

System: It's about time!
CPU
Q6600 G0 @3.3Ghz
Motherboard
Gigabyte P35-DS3L
Memory
2Gb Ballistix DDR2 800 @915Mhz
Graphics Card
Sapphire 2900Pro Flashed to XT
Hard Drive
Seagate Barracuda 320Gb
Sound Card
Onboard
Power Supply
Corsair HX 620W
Case
CM 690
CPU cooling
Tuniq Tower 120
GPU cooling
stock
OS
Vista Business and VMWare Ubuntu
Monitor
Acer AL2223W 22"
kdbolt70 is offline I fold for Overclock.net   Reply With Quote
Old 01-08-08   #22 (permalink)
Intel Overclocker
 
intel ati

Join Date: Nov 2007
Posts: 76

Rep: 13 Admiral Doom Unknown
Unique Rep: 0
Trader Rating: 1
Default

Here's my response- its written for the Java Console. Put this into Eclipse or something, compile, and run...it'll do the job. You I know there's a more efficient way to manage the encoding key for decoding text, but i don't really have a lot of time right now (exams for high school).

import java.util.*;
public class Encode
{

static Scanner scan;
public static void main(String[] args)
{
final int tSize = 200;
scan = new Scanner(System.in);
System.out.println("Would you like to <1> Encode or <2> Decode a message?");
if(scan.nextInt()==1)
encode(tSize);
else
decode(tSize);
}
public static void encode(int tableSize)
{
Hashtable<Character, Character> table = new Hashtable<Character, Character>();
table.put((char)0, (char)tableSize);
for(int i=1; i<tableSize-1; i++)
table.put((char)i, (char)(i+1));
String input="", output="";
System.out.println("Hey, input a string!");
scan = new Scanner(System.in);
input = scan.nextLine();
for(int i=0; i<input.length(); i++)
{
output+=""+table.get(input.charAt(i));
}
System.out.println("This is the encoded text: "+output);
}
public static void decode(int tableSize)
{
Hashtable<Character, Character> table = new Hashtable<Character, Character>();
table.put((char)tableSize, (char)0);
for(int i=2; i<tableSize; i++)
table.put((char)i, (char)(i-1));
String input="", output="";
System.out.println("Hey, input an encoded string!");
scan=new Scanner(System.in);
input = scan.nextLine();
for(int i=0; i<input.length(); i++)
{
output+=""+table.get(input.charAt(i));
}
System.out.println("This is the decoded text: "+output);
}

}

Oh crap...the indents are screwed up. Lemme zip it up real quick
__________________
92% of teens have moved on to rap. If you are part of the 8% who still listen to real music, copy and paste this.

NVIDIA

System: 3 Mile Island
CPU
Q6600 @ 3.6
Motherboard
Asus Maximus Formula
Memory
4x2 gb Patriot Viper DDR2 800
Graphics Card
Sapphire Radeon 4870
Hard Drive
2x 320gB WD RAID 0
Sound Card
SupremeFX II 7.1
Power Supply
PC P&C 750w Silencer
Case
Antec 900
CPU cooling
Xigmatek S-1283
OS
Vista x64
Monitor
19" Samsung SyncMaster 2ms

Last edited by Admiral Doom : 01-08-08 at 09:16 PM.
Admiral Doom is offline   Reply With Quote
Old 01-08-08   #23 (permalink)
Intel Overclocker
 
intel ati

Join Date: Nov 2007
Posts: 76

Rep: 13 Admiral Doom Unknown
Unique Rep: 0
Trader Rating: 1
Default

Ok it should be here...unzip and open with Eclipse
Attached Files
File Type: zip Encode.zip (592 Bytes, 3 views)
__________________
92% of teens have moved on to rap. If you are part of the 8% who still listen to real music, copy and paste this.

NVIDIA

System: 3 Mile Island
CPU
Q6600 @ 3.6
Motherboard
Asus Maximus Formula
Memory
4x2 gb Patriot Viper DDR2 800
Graphics Card
Sapphire Radeon 4870
Hard Drive
2x 320gB WD RAID 0
Sound Card
SupremeFX II 7.1
Power Supply
PC P&C 750w Silencer
Case
Antec 900
CPU cooling
Xigmatek S-1283
OS
Vista x64
Monitor
19" Samsung SyncMaster 2ms
Admiral Doom is offline   Reply With Quote
Old 01-16-08   #24 (permalink)
Case Modder
 
intel nvidia

Join Date: Jan 2008
Location: Nashville, TN
Posts: 185

Rep: 13 arjo_reich Unknown
Unique Rep: 0
Trader Rating: 0
Default

Quote:
Originally Posted by BFRD View Post
Ok. The encoder challenge is over. Stay tuned for the next installment. Thanks to everyone that participated.
Just stumbled into the thread, I'll look forward to the next installment. By the way, for anyone that was curious, the specific name of that type of cipher is called a "ceasar shift" ... because Julius Ceasar (supposedly) used a three character shift pattern as a means of communicating securely with his generals. :shrug:
__________________
System: My "Dev" box...
CPU
C2Q Q6600 G0 SLACR (lapped)
Motherboard
ASUS P5N32-E 680i SLi
Memory
(4) 1GB Crucial Ballistix DDR2-800 @ 4-4-4-12
Graphics Card
(2) Gigabyte 8800-GTX 768MB SLi
Hard Drive
(2) WD Caviar WD7500AAKS 750GB @ RAID-0
Sound Card
SupremeFX (stock)
Power Supply
Ultra-X3 1000W ULT40064 SLi Ready
Case
SilverStone Temjin TJ09-SW
CPU cooling
ThermalRight Ultra-120 Extreme w/ IFX-10 backside
GPU cooling
Thermaltake DuOrb CL-G0102
OS
Windows Vista x64 SP1 RTM
Monitor
(2) Samsung 226BW "S" 2ms (GTG) 700:1(DC 3000:1)
arjo_reich is offline   Reply With Quote
Old 07-03-08   #25 (permalink)
Programmer
 
Butterbum's Avatar
 
intel nvidia

Join Date: Jun 2008
Location: London
Posts: 336

Rep: 21 Butterbum is acknowledged by some
Unique Rep: 0
Folding Team Rank: 760
Trader Rating: 0
Default

When is the next challenge comming? These look awfully easy . How about a 24 hour challenge?
__________________
System: UberRig
CPU
C2D E8200 @ 3.75ghz (1.375v, 468 *4 = 1875mhz FSB)
Motherboard
ASUS P5N-E SLI (650i)
Memory
OCZ 2GB Dual Channel Platinum Revision 2 X (2x1GB)
Graphics Card
EVGA 9600 GT (KO Edition)
Hard Drive
WD Caviar 250gb + 80gb
Sound Card
Soundblaster Live
Power Supply
Huntkey Green Star 500w
Case
Thermaltake Soprano
CPU cooling
Zalman 9500
GPU cooling
Stock
OS
Vista x64/Ubuntu 8.04
Monitor
Philips 200W (20inch LCD)
Butterbum is offline I fold for Overclock.net   Reply With Quote
Old 07-08-08   #26 (permalink)
Mmmm! Toast!
 
hometoast's Avatar
 
intel nvidia

Join Date: Sep 2007
Location: Pennsylvania
Posts: 1,061

Rep: 85 hometoast is acknowledged by some
Unique Rep: 0
Folding Team Rank: 380
Trader Rating: 8
Default

Quote:
Originally Posted by Butterbum View Post
When is the next challenge comming? These look awfully easy . How about a 24 hour challenge?

Yes yes!
__________________
Rocket 3 down-payment fund: [|||||||||] $6k
e6750 @ 3.2 Ghz (400x8) - 7k ppd GPU+SMP

System: Muh Box
CPU
E6750 @ 3.2Ghz
Motherboard
DFI Blood Iron
Memory
4x1G GSkill HZs @960
Graphics Card
eVGA 8800GT 512 @675/950
Hard Drive
2xWD 320 AAKS Raid0 + 74G Raptor
Sound Card
on-board. (linux!=xfi)
Power Supply
CM Extreme Power 650W
Case
CM Centurion 5
CPU cooling
AC Freezer 7
OS
Vista Ultimate 64
Monitor
Samsung 204BW
hometoast is offline I fold for Overclock.net Overclocked Account   Reply With Quote
Old 07-09-08   #27 (permalink)
Programmer
 
Butterbum's Avatar
 
intel nvidia

Join Date: Jun 2008
Location: London
Posts: 336

Rep: 21 Butterbum is acknowledged by some
Unique Rep: 0
Folding Team Rank: 760
Trader Rating: 0
Default

Quote:
Originally Posted by hometoast View Post
Yes yes!
If you could pull enough people together for a 24h session i could moderate it and come up with a few challenges, ive done my fair share of them and know a few good ones
__________________
System: UberRig
CPU
C2D E8200 @ 3.75ghz (1.375v, 468 *4 = 1875mhz FSB)
Motherboard
ASUS P5N-E SLI (650i)
Memory
OCZ 2GB Dual Channel Platinum Revision 2 X (2x1GB)
Graphics Card
EVGA 9600 GT (KO Edition)
Hard Drive
WD Caviar 250gb + 80gb
Sound Card
Soundblaster Live
Power Supply
Huntkey Green Star 500w
Case
Thermaltake Soprano
CPU cooling
Zalman 9500
GPU cooling
Stock
OS
Vista x64/Ubuntu 8.04
Monitor
Philips 200W (20inch LCD)
Butterbum is offline I fold for Overclock.net   Reply With Quote
Old 07-13-08   #28 (permalink)
OLPC XO developer
 
dangerousHobo's Avatar
 
amd nvidia

Join Date: Dec 2005
Location: ~/
Posts: 3,427

FAQs Submitted: 7
Folding Team Rank: 330
Trader Rating: 0
Default

I'd love to start some more challenges. We'd need to have some that are fairly hard and some that can be easy as not everyone is at the same level here and we want to include as many people as possible. Post up some possible challenges and we can move forward from there. A 24 hour challenge sounds fun too.
__________________
"UNIX was never designed to keep people from doing stupid things, because that policy would also keep them from doing clever things." - Doug Gwyn

Try out the latest Programming Challenge
Quote:
Originally Posted by Melcar
Only one reasonable way to solve this... a dance off.

CPU-Z Validation
@ 2.97-prime95 stable 16 hours @ 1.48v Proof | CPU-Z Validation @ 3.15


Getting Mouse Side Buttons to work in Linux, Compile a custom Kernel, More

System: Anomaly
CPU
Athlon 3700 SD(KACAE)0546 @3.02ghz
Motherboard
DFI UT nF4 Ultra-D
Memory
G.Skill 2x512 UTT(BH-5)
Graphics Card
evga 6800gs
Hard Drive
Maxtor 300GB + WD 250GB
Sound Card
onboard
Power Supply
Ultra 500w V-series
Case
one from Ultra
CPU cooling
Big Typhoon
GPU cooling
80mm fan mounted on
OS
Arch Linux, Slackware 12.1
Monitor
Acer AL2216W 22" WS LCD
dangerousHobo is offline I fold for Overclock.net Overclocked Account dangerousHobo's Gallery   Reply With Quote
Old 07-13-08   #29 (permalink)
New to Overclock.net
 
amd ati

Join Date: Jun 2008
Location: Dallas,TX
Posts: 413

Rep: 68 heretic is acknowledged by some
Unique Rep: 0
Trader Rating: 1
Default

Why not use the ACM programming contest stuff? One of my profs has a bunch of the problem sets on his school web space, but you'd have to trust people not to cheat and look at the answers.
__________________
System: My System
CPU
3800x2
Motherboard
DFI NF4 SLI-D
Memory
2gb GSkill ZX
Graphics Card
HD4850
Hard Drive
6+TB of insanity
Sound Card
X-Fi XtremeMusic
Power Supply
Corsair 750TX
Case
Rocketfish
CPU cooling
TT Sonic Tower
OS
XP Pro
Monitor
L2410NM + DYLM24D6
heretic is offline   Reply With Quote
Old 07-13-08   #30 (permalink)
Mmmm! Toast!
 
hometoast's Avatar
 
intel nvidia

Join Date: Sep 2007
Location: Pennsylvania
Posts: 1,061

Rep: 85 hometoast is acknowledged by some
Unique Rep: 0
Folding Team Rank: 380
Trader Rating: 8
Default

OOoooRR! I could post some problems I have *cough* at work

I'm not lazy! I'm efficient!
__________________
Rocket 3 down-payment fund: [|||||||||] $6k
e6750 @ 3.2 Ghz (400x8) - 7k ppd GPU+SMP

System: Muh Box
CPU
E6750 @ 3.2Ghz
Motherboard
DFI Blood Iron
Memory
4x1G GSkill HZs @960
Graphics Card
eVGA 8800GT 512 @675/950
Hard Drive
2xWD 320 AAKS Raid0 + 74G Raptor
Sound Card
on-board. (linux!=xfi)
Power Supply
CM Extreme Power 650W
Case
CM Centurion 5
CPU cooling
AC Freezer 7
OS
Vista Ultimate 64
Monitor
Samsung 204BW
hometoast is offline I fold for Overclock.net Overclocked Account   Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools



All times are GMT -4. The time now is 07:38 PM.


Overclock.net is a Carbon Neutral Site Creative Commons License Internet Security By ControlScan

Terms of Service / Forum Rules | Privacy Policy | Advertising | Become an Official Vendor
Copyright © 2008 Shogun Interactive Development. Most rights reserved.
Page generated in 0.21783 seconds with 10 queries