aspose file tools*
The moose likes Java in General and the fly likes luby transformation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "luby transformation" Watch "luby transformation" New topic
Author

luby transformation

vijay umar
Ranch Hand

Joined: Mar 24, 2009
Posts: 100
can any body please help me to implement luby transformation code using java?
Prithvi Sehgal
Ranch Hand

Joined: Oct 13, 2009
Posts: 774
Hi Vinay,

It is a certification forum. Post your question in Java Beginner or advance. Here we only
answer SCJP related stuff. Please check for faq's how to choose an appropriate forum.

Best Regards,

Prithvi,
My Blog, Follow me on Twitter,Scjp Tips, When you score low in mocks, Generics,Scjp Notes, JavaStudyGroup
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42292
    
  64
Do you have the algorithm for that? If not, find a source for it. If yes, what concrete issues are you encountering?


Ping & DNS - my free Android networking tools app
vijay umar
Ranch Hand

Joined: Mar 24, 2009
Posts: 100
the algorithm is:

1.We have to select a word like: "hello"
2.convert this string into binary form.like "hello" binary form will be 10011100 10010101 10011100 10001010 10101001
3.take each binary form as m1,m2,m3,m4 and then perform XOR operation between them,like m1 xor m2 ,m2 xor m3, m3 xor m1,m1 xor m2 xor m3.
3.then print the result.

i have apiece of code here but using it i cud only convert a word into binary but not able to perform XOR operation. please Ulf help me!

Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42292
    
  64
Are you familiar with the XOR operator in Java? It's "^", and searching for "bitwise logical operators java" should find more info about it.
Wouter Oet
Saloon Keeper

Joined: Oct 25, 2008
Posts: 2700

You're asking the same question here.


"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." --- Martin Fowler
Please correct my English.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: luby transformation