Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_vb thread: RES: RE: Complex


Message #1 by Juliano Moraes Rodrigues <JRodrigues@s...> on Thu, 6 Dec 2001 18:38:05 -0300
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C17E9E.49F79760
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi, Unhappy it isn=B4t.

We work at Submarino.Com, a brazilian Amazon.com version. And we are
analizing old Portugal solds, where we have a fiscal plan and need
determinate how it was calculated.

Sorry my english, but it=B4s a real situation. We are trying by try and 
error,
but it=B4s impossible.

Thanks in advance.

Juliano Moraes Rodrigues
Analista de Sistemas - FA Consult
juliano.rodrigues@f...
(019) 9719-2417


-----Mensagem original-----
De: Shaun Steckley [mailto:SSTECKLEY@P...]
Enviada em: quinta-feira, 6 de dezembro de 2001 17:33
Para: professional vb
Assunto: [pro_vb] RE: Complex


Sounds like a homework problem...

-----Original Message-----
From: Jeff Mason [mailto:jeffm@u...]
Sent: Thursday, December 06, 2001 3:30 PM
To: professional vb
Subject: [pro_vb] RE: Complex


I believe it's called the "napsack problem", it's NP-complete, and good 
luck
finding an algorithm other than trying every combination of items 
against
every other combination...

--
Jeff Mason			Custom Apps, Inc.
Jeff@c...

-----Original Message-----
From: jrodrigues@s... [mailto:jrodrigues@s...]
Sent: Thursday, December 06, 2001 8:01 PM
To: professional vb
Subject: [pro_vb] Complex


Hi,

We have a big trouble:

We need to define, among 10 to 30 values, any combination that match an
especific amount.

For example, I need to know which of the 10 values below totalize 5000:

1000
1500
2000
2300
2700
400
700
900
1900
2100

You may get more than one result, but I need just one. Some 
possibilities:
- 400 + 2700 + 900;
- 2300 + 2700;
- 1900 + 2100 + 1000;

It=B4s a big logical trouble.

Thanks in advance.

Best regards,

Juliano Moraes Rodrigues
Analista de Sistemas - FA Consult
juliano.rodrigues@f...
(019) 9719-2417
S=E3o Paulo - Brasil




********************************************************************
The information contained in this email is confidential and
is intended solely for the use of the person identified and
intended as the recipient. If you are not the intended
recipient, any disclosure, copying, distribution, or taking of
any action in reliance on the contents is prohibited. If you
receive this message in error, contact the sender
immediately and delete it from your computer.

Personal e-mails are restricted by PSECU policy. As such,
PSECU specifically disclaims any responsibility or liability
for any personal information or opinions of the author
expressed in this email.
********************************************************************




  Return to Index