Find Jobs
Hire Freelancers

java programing

$10-30 USD

En cours
Publié il y a plus de 7 ans

$10-30 USD

Payé lors de la livraison
GF2 In this project you are required to write the java program “[login to view URL]” to implement the second type of finite field GF(pn) where p is a prime number and n is a positive integer, and four operations “+”, “-”, “*”, and “/”, respectively. Specifically, your program will read parameters and polynomials from a file named “[login to view URL]” (under the same directory of the program). Then your program should create a file named “[login to view URL]” (under the same directory of the program) and write the results to “[login to view URL]”. Please check the attached sample files “[login to view URL]” and “[login to view URL]”. In “[login to view URL]”: 1. First line is the prime number p. 2. Second line is the degree n of the irreducible polynomial m(x) over Zp, which can be any positive integer. 3. Third line is the coefficients of m(x), from the leading coefficient to the constant term, separated by one blank space. 4. Fourth line is the degree u of f(x) over Zp, where u can be any integer satisfying 0 < u < n. 5. Fifth line is the coefficients of f(x), from the leading coefficient to the constant term, separated by one blank space. 6. Sixth line is the degree v of g(x) over Zp, where v can be any integer satisfying 0 < v < n. 7. Seventh line is the coefficients of g(x), from the leading coefficient to the constant term, separated by one blank space. Example: If the [login to view URL] file contains the following seven lines: 3 2 1 0 1 1 1 1 1 2 1 Then p = 3 (i.e. base field is Z3), m(x) = x2 + 1, f(x) = x + 1, and g(x) = 2x + 1. In “[login to view URL]”: 1. First line is the coefficients of f(x) + g(x) in GF(pn), from the leading coefficient to the constant term, separated by one blank space. 2. Second line is the coefficients of f(x) - g(x) in GF(pn), from the leading coefficient to the constant term, separated by one blank space. 3. Third line is the coefficients of f(x) * g(x) in GF(pn), from the leading coefficient to the constant term, separated by one blank space. 4. Fourth line is the coefficients of f(x) / g(x) in GF(pn), from the leading coefficient to the constant term, separated by one blank space (don’t forget to handle the case of g(x) = 0). Example: Given the preceding [login to view URL] file, f(x) + g(x) = (x + 1) + (2x + 1) = 3x + 2 = 2 Explain: since 3 is not in Zp = Z3, perform 3 mod 3 = 0. f(x) - g(x) = (x + 1) - (2x + 1) = - x = 2x Explain: since − 1 is not in Zp = Z3, perform −1 mod 3 = 2. f(x) * g(x) = (x + 1) * (2x + 1) = 2x2 + 3x + 1 = 2x2 + 1 = PLDA(2x2 + 1, x2 + 1)[1] = 2 Explain: since 3 is not in Zp = Z3, perform 3 mod 3 = 0; since the degree of 2x2+ 1 >= the degree of m(x), perform 2x2 + 1 mod x2+ 1 = PLDA(2x2+ 1, x2 + 1)[1] = 2. f(x) / g(x) = (x + 1) / (2x + 1) = (x + 1) * EEAP(2x + 1, x2 + 1)[0] = (x + 1) * (2x + 2) = 2x2 + 4x + 2 = 2x2+ x + 2 = PLDA(2x2 + x + 2, x2 + 1)[1] = x Therefore, the [login to view URL] file should contain the following four lines: 2 2 0 2 1 0 Remark 1: The leading coefficient should not be 0 unless the polynomial is 0. Example 1: Let p = 3, m(x) = x2+ 1, f(x) = 2x, g(x) = x + 1, then f(x) + g(x) = 1 rather than 0x + 1 or 3x + 1. Thus the first line of “[login to view URL]” should be 1 rather than 0 1 or 3 1. Example 2: Let p = 3, m(x) = x2 + 1, f(x) = x + 2, g(x) = 2x + 1, then f(x) + g(x) = 0 rather than 0x + 0 or 3x + 3. Thus the first line of “[login to view URL]” should be 0 rather than 0 0 or 3 3. Remark 2: The coefficient (that after the leading coefficient) should be outputted even if it is 0. Example 1: Let p = 3, m(x) = x2 + 1, f(x) = 1, g(x) = x + 2, then f(x) + g(x) = x. Thus the first line of “[login to view URL]” should be 1 0 rather than 1 or 1 3. “javac [login to view URL]” will be entered to the command line to compile the java file and then “java GF2” will be entered to the command line to run the program Your program should output the file “[login to view URL]” to the same directory
N° de projet : 11886217

Concernant le projet

17 propositions
Projet à distance
Actif à il y a 8 ans

Cherchez-vous à gagner de l'argent ?

Avantages de faire une offre sur Freelancer

Fixez votre budget et vos délais
Soyez payé pour votre travail
Surlignez votre proposition
Il est gratuit de s'inscrire et de faire des offres sur des travaux
17 freelances proposent en moyenne $26 USD pour ce travail
Avatar de l'utilisateur
Hi there, I went through the requirements I would like to do this project if given the opportunity. Let me know if you are interested so I can have further details. Thanks.
$30 USD en 1 jour
5,0 (1105 commentaires)
7,7
7,7
Avatar de l'utilisateur
Hi there, I'm a senior software developer who have around 300 completed projects and my account is qualified by this site. My page: https://www.freelancer.com/u/DucNA.html Could you please send (or discuss with) me more detail? I'll check and then will let you know my estimation (time and coding effort) for this project. Thanks & best regards, Duc Nguyen
$30 USD en 0 jour
4,9 (274 commentaires)
6,6
6,6
Avatar de l'utilisateur
A proposal has not yet been provided
$25 USD en 0 jour
4,9 (85 commentaires)
5,4
5,4
Avatar de l'utilisateur
Introduction & skills: I have good knowledge in below mentioned skills by you. I also have some certifications in Java. I can share some of demos with you if you want for better understanding. Currently I'm working on a banking project in an IT company using Java, jsp/jsf, hibernate, spring, software architecture and database programming. And most importantly, you will get your project done before the deadline. Experience: We are serving our customers since 2012 and on freelancer since 2015.
$25 USD en 1 jour
4,8 (41 commentaires)
5,1
5,1
Avatar de l'utilisateur
I am a highly motivated with strong creative and conceptual skills, always prepared to accept challenging tasks and hence, I am here to further enhance my personal and professional growth. JAVA-SE (OOP,Collection,JDBC,GUI,Swing,Multithreading,IO Streaming). JAVA-EE ( Servlets, JSP,Struts2,JSF,Web Services,Spring DI,Spring Transaction ) PHP (HTML5,CSS3,JAVASCRIPT,JQUERY,AJAX,BOOTSTRAP, WORDPRESS ) C/C++ Databases: RDBMS, MYSQL,Oracle,SQL Sever Other Software Engineering Skills: Database Design, Software Documentation
$25 USD en 1 jour
3,9 (4 commentaires)
4,7
4,7
Avatar de l'utilisateur
A proposal has not yet been provided
$35 USD en 2 jours
5,0 (8 commentaires)
3,5
3,5
Avatar de l'utilisateur
hi, ready to start right now. I have experience in Java. Can provide quality and standard work. Please pm me for more details. Thank you
$30 USD en 1 jour
4,7 (12 commentaires)
3,6
3,6
Avatar de l'utilisateur
I have read over your project description and I'm interested in completing your task. If you check my site or portfolio you will see that I am of a higher quality than most freelancers on here. I get it done quickly, efficiently, and with exceptional quality. I am a professional with roughly 7 years experience and a college level degree in the field of web development. I am experienced in the languages of PHP, CSS, Javascript, HTML5, XML, MySQL, AJAX, Jquery, actionscript 2.0 & 3.0 I am also experienced with the use of all Adobe products. Please let me know if you have any questions or concerns before making your final decisions. Thank You,
$35 USD en 1 jour
4,0 (11 commentaires)
3,5
3,5
Avatar de l'utilisateur
Naturally I love math and Coding, this is an exciting project because it combine my two greatest passions.
$23 USD en 1 jour
0,0 (0 commentaires)
0,0
0,0
Avatar de l'utilisateur
I will make sure to finish it as quick as possible, it doesn't seem so complicated.
$27 USD en 1 jour
0,0 (0 commentaires)
0,0
0,0
Avatar de l'utilisateur
Description look very clear, i can finish in one day or less. Project can open in Netbeans (or Eclipse) and run immediate.
$25 USD en 1 jour
0,0 (0 commentaires)
0,0
0,0
Avatar de l'utilisateur
A proposal has not yet been provided
$25 USD en 3 jours
0,0 (0 commentaires)
0,0
0,0
Avatar de l'utilisateur
I just have finished my degree computer Engineer in University of Peradeniya , Sri Lanka. I have good knowledge and working experience with java. I also have knowledge about algorithm. therefore I can do this project.
$14 USD en 1 jour
0,0 (0 commentaires)
0,0
0,0
Avatar de l'utilisateur
A proposal has not yet been provided
$25 USD en 3 jours
0,0 (0 commentaires)
0,0
0,0
Avatar de l'utilisateur
I have 5 years of experience on java , and technical part of this is really simple. and whats about math part, i am currently on engineering course in university and we are passing this things right now, so it wont be a problem either.
$25 USD en 1 jour
0,0 (0 commentaires)
0,0
0,0

À propos du client

Drapeau de UNITED STATES
frostburg, United States
4,9
6
Méthode de paiement vérifiée
Membre depuis sept. 13, 2016

Vérification du client

Merci ! Nous vous avons envoyé un lien par e-mail afin de réclamer votre crédit gratuit.
Une erreur a eu lieu lors de l'envoi de votre e-mail. Veuillez réessayer.
Utilisateurs enregistrés Total des travaux publiés
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Chargement de l'aperçu
Permission donnée pour la géolocalisation.
Votre session de connexion a expiré et vous avez été déconnecté. Veuillez vous connecter à nouveau.