Find Jobs
Hire Freelancers

Boolean Expression Parser and Converter

$30-35 USD

Cancelado
Publicado hace casi 16 años

$30-35 USD

Pagado a la entrega
I require C++ code that parses a logical formula and puts it in Conjunctive Normal Form. The compiler I am using is Turbo C++ 3.0, and thus I would appreciate the coder using only very simple code so that I can easily integrate the code you write into my software project. (I will approve the code you write when you submit it; you must be willing to make any changes I request if I accept your bid.) Please use the apstring and apvector include files. They are all free and available from [login to view URL]~ola/ap/code/ , along with any of the other ap classes you require. I would like the logical formula to be parsed as an apstring. Each literal in the logical formula will be represented as an integer. The negation of a formula, whether a single literal or a parenthetical clause, will be represented with the minus sign "-". The "and" operator will be represented with an ampersand, "&," the "or" operator will be represented with a pipe, "|", and the implication operator (i.e., the operator such that "a implies b" means a is true if b is true) will be represented by a semicolon, ";". Incorporate the order of operations into your solution. Here is a sample formula: ((-(2&3)|-(1|-3|4)&3&-(2;3))|(1|2|3)) There is a Java version of what I want programmed available online: [login to view URL] . Do not copy their code (it's in Java anyway); however, you may look at it to get an idea of what I want. This should be a relatively simple job for a programmer who knows what they are doing. Remember, I want the code written in a simple manner, so that my (very old) compiler will be able to use it. I want to be able to call a single function that will run on an inputted apstring and convert to conjunctive normal form as I have requested. The output should be of the following form: (1|3|2|5)&(-3|1|4|2)&(-2)&(1|2|2) (Obviously, that is not the CNF version of the formula listed above; but this should give you some idea of how the output should look.) I will test the accuracy your code using Bexpred. I will not release funds until I am satisfied that your code is correct, and it meets my specification. Thank you. -Phil ## Deliverables I have listed all requirements above.
ID del proyecto: 3060234

Información sobre el proyecto

6 propuestas
Proyecto remoto
Activo hace 16 años

¿Buscas ganar dinero?

Beneficios de presentar ofertas en Freelancer

Fija tu plazo y presupuesto
Cobra por tu trabajo
Describe tu propuesta
Es gratis registrarse y presentar ofertas en los trabajos
6 freelancers están ofertando un promedio de $25 USD por este trabajo
Avatar del usuario
See private message.
$29,75 USD en 7 días
4,8 (274 comentarios)
7,1
7,1
Avatar del usuario
See private message.
$25,50 USD en 7 días
4,9 (89 comentarios)
5,3
5,3
Avatar del usuario
See private message.
$29,75 USD en 7 días
5,0 (30 comentarios)
4,3
4,3
Avatar del usuario
See private message.
$16,15 USD en 7 días
5,0 (4 comentarios)
1,9
1,9
Avatar del usuario
See private message.
$29,75 USD en 7 días
0,0 (1 comentario)
0,0
0,0
Avatar del usuario
See private message.
$17 USD en 7 días
0,0 (0 comentarios)
0,0
0,0

Sobre este cliente

Bandera de UNITED STATES
United States
5,0
3
Miembro desde may 13, 2005

Verificación del cliente

¡Gracias! Te hemos enviado un enlace para reclamar tu crédito gratuito.
Algo salió mal al enviar tu correo electrónico. Por favor, intenta de nuevo.
Usuarios registrados Total de empleos publicados
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Cargando visualización previa
Permiso concedido para Geolocalización.
Tu sesión de acceso ha expirado y has sido desconectado. Por favor, inica sesión nuevamente.