Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 4 of 4

Thread: Alternate Decision Process Needed

  1. #1
    Junior Member
    Join Date
    Oct 2013
    Posts
    2
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Alternate Decision Process Needed

    I currently have a decision process that determines the Country of Origin of a manufactured part so that the correct tariff can be assigned to it.
    The method in use today to determine this Country of origin is to ask a YES/NO question and then determine the next question to be asked, based upon the answer.
    The shortest chain is 5 Q&A and the longest is over 35. The average chain is about 12 to 15.

    My question is this: Is there any other decision making construct that I can implement that will result in a shorter chain?

    Thank You


  2. #2
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,289
    My Mood
    Mellow
    Thanks
    191
    Thanked 668 Times in 655 Posts

    Default Re: Alternate Decision Process Needed

    How would we know the answer?

  3. #3
    Junior Member
    Join Date
    Oct 2013
    Posts
    2
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re: Alternate Decision Process Needed

    What I am looking for is some other decision process other than a YES/NO construct.

  4. #4
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,289
    My Mood
    Mellow
    Thanks
    191
    Thanked 668 Times in 655 Posts

    Default Re: Alternate Decision Process Needed

    Well, that helps a little, but apparently there are 5 to 35 discrete bits of information needed to arrive at a conclusion. Once the necessary bits of info have been obtained, there may be a number of ways to arrange them to arrive at the answer. The current Yes/No approach suggests that binary logic could be used to obtain the answer. The clever use of binary arithmetic may achieve the answer more quickly. However, the necessary bits of information must still be collected from the user.

    I suggest collecting the first 5 bits and from them determine the possible solutions, eliminating or confirming them with the minimum number of additional inputs possible.

  5. The Following User Says Thank You to GregBrannon For This Useful Post:

    brooksr13 (October 12th, 2013)

Similar Threads

  1. Alternate turns using Polymorphism and abstract classes
    By dalizardking427 in forum What's Wrong With My Code?
    Replies: 7
    Last Post: April 13th, 2013, 07:48 PM
  2. Grails Developer Needed - URGENTLY NEEDED *WORK FROM HOME*
    By IngeniumR in forum Paid Java Projects
    Replies: 0
    Last Post: February 5th, 2013, 06:19 AM
  3. Java Game - Alternate between players
    By JohnQ in forum What's Wrong With My Code?
    Replies: 8
    Last Post: November 21st, 2011, 07:49 PM
  4. Help with java decision structure program
    By kingsnans in forum Object Oriented Programming
    Replies: 4
    Last Post: November 5th, 2011, 10:54 AM
  5. Ordered Binary Decision Tree
    By nilay in forum Member Introductions
    Replies: 1
    Last Post: October 7th, 2011, 06:12 AM