Find Jobs
Hire Freelancers

Simple java program converting Context Free Grammar to Chomsky Normal Form

$10-30 USD

ปิดแล้ว
โพสต์ มากกว่า 9 ปีที่ผ่านมา

$10-30 USD

ชำระเงินเมื่อส่งงาน
Must be well documented so end users can make sense of the code Write a Java program, using only the classes in the Java SE 7 , that: 1. Reads a proposed context-free grammar (CFG) from a text file (I tell you the format below). You must ask the user to select the text file with a JFileChooser. Your program must determine whether or not the text file contains a legal CFG. If not, report it and terminate. Otherwise, proceed to step 2. 2. Converts the grammar into Chomsky Normal Form. Suppose that the initial text file was abc.txt. Then your program should produce the following 4 text files, stored in the same directory as [login to view URL]: a. File [login to view URL] contains the grammar with a new start variable b. File [login to view URL] contains the grammar from [login to view URL] with all ε transitions removed c. File [login to view URL] contains the grammar from [login to view URL] with all unit rules removed d. File [login to view URL] contains the grammar in Chomsky Normal Form Notes on the program specification: 1. The CFG in the input text file will have one production on each line, with single upper-case letters denoting variables and Σ = {0,1}. “e” denotes epsilon. The initial start variable will be “S”. Each production in the input file will be in the following format, where <U> denotes an upper case letter and <t> denotes a terminal (0, 1, or ε): <U>:<some legal right-hand-side of a production> 2. When you create a new start variable, call it “T”. 3. All new variables you create should be single, upper-case letters. 4. The maximum number of productions in the original grammar may be limited to 10. No production will have more than 3 symbols on the right-hand side. 5. The maximum size of a string to test would be 6 characters. Here are some examples of what the CFGs in the input text files may look like: S:0S1 S:e S:0A S:1B A:01 A:0A B:10 B:1B B:e
รหัสโปรเจกต์: 7001510

เกี่ยวกับโปรเจกต์

6 ข้อเสนอ
โปรเจกต์ระยะไกล
ใช้งานอยู่ 9 ปีที่ผ่านมา

กำลังมองหาการสร้างรายได้ใช่ไหม?

ประโยชน์ของการประมูลกับ Freelancer

กำหนดงบประมาณและกรอบเวลาของคุณ
รับเงินจากการงานของคุณ
อธิบายข้อเสนอของคุณในภาพรวม
ลงทะเบียนและเสนอราคาฟรี
6 ฟรีแลนซ์กำลังเสนอราคาโดยเฉลี่ย $38 USD สำหรับงานนี้
รูปอวาตาร์ของผู้ใช้
I studied all of this stuff in college. I know how grammars and contexts work, it shouldn't take me long at all.
$20 USD ใน 1 วัน
0.0 (0 รีวิว)
0.0
0.0
รูปอวาตาร์ของผู้ใช้
A proposal has not yet been provided
$111 USD ใน 1 วัน
0.0 (0 รีวิว)
0.0
0.0
รูปอวาตาร์ของผู้ใช้
A proposal has not yet been provided
$25 USD ใน 1 วัน
0.0 (0 รีวิว)
0.0
0.0
รูปอวาตาร์ของผู้ใช้
Hello friend, I have 5 very intelligent developers who are proficient in solving string problems and 3 of them being best in java. I assure that we will work with single minded dedication to write quality code that satisfy your needs. In hope to get an opportunity to write the code for you. -Nikhil
$25 USD ใน 3 วัน
0.0 (0 รีวิว)
0.0
0.0
รูปอวาตาร์ของผู้ใช้
A proposal has not yet been provided
$25 USD ใน 1 วัน
0.0 (0 รีวิว)
0.0
0.0
รูปอวาตาร์ของผู้ใช้
A proposal has not yet been provided
$24 USD ใน 1 วัน
0.0 (0 รีวิว)
0.0
0.0

เกี่ยวกับลูกค้า

ปักธงของ INDIA
India
0.0
0
เป็นสมาชิกตั้งแต่ ม.ค. 20, 2015

การยืนยันลูกค้า

ขอบคุณ! เราได้ส่งลิงก์สำหรับเครดิตฟรีให้คุณทางอีเมลแล้ว
เกิดข้อผิดพลาดขณะส่งอีเมลของคุณ กรุณาลองอีกครั้ง
โลโก้ Freelancer Thailand / ภาษาไทย ช่วยเหลือและสนับสนุน FreelancerประเภทโปรเจคการประกวดFreelancerองค์กรแพ็กเกจสมาชิกโครงการ Freelancer ชั้นแนวหน้าการจัดการโปรเจคงานในพื้นที่Photo Anywhereหน้าจัดแสดงผลงานAPI สำหรับนักพัฒนาได้รับการยืนยันDesktop App เกี่ยวกับเกี่ยวกับเราวิธีใช้งานความปลอดภัยนักลงทุนแผนผังเว็บไซต์เรื่องราวข่าวออกสื่อทีมรางวัลข่าวประชาสัมพันธ์ร่วมงานกับเรา ข้อกำหนดนโยบายความเป็นส่วนตัวข้อกำหนดและเงื่อนไขนโยบายลิขสิทธิ์ข้อพึงปฏิบัติค่าธรรมเนียมและค่าบริการหุ้นส่วนEscrow.comLoadshiftWarrior Forum แอปโลโก้ Apple App Store โลโก้ Google Play
ไม่สามารถคัดลอกไปยังคลิปบอร์ดได้ โปรดลองอีกครั้งหลังปรับเปลี่ยนการอนุญาต
คัดลอกไปยังคลิปบอร์ดแล้ว
ผู้ใช้ที่ลงทะเบียน งานที่มีการโพสต์ทั้งหมด
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
กำลังโหลดตัวอย่าง
ได้รับอนุญาตสำหรับตำแหน่งทางภูมิศาสตร์
เซสชั่นการเข้าสู่ระบบของคุณหมดอายุและคุณได้ออกจากระบบแล้ว กรุณาเข้าสู่ระบบอีกครั้ง