Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Product Lifecycle
  3. Free Tools
  4. Application that can optimize a look-up table by identifying don't cares?

Application that can optimize a look-up table by identifying don't cares?

Scheduled Pinned Locked Moved Free Tools
questioncode-reviewlearning
5 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    arnold_w
    wrote on last edited by
    #1

    Let's assume I have a simple look-up table with columns 1, 2, and 3. The valid values for column 1 are A and B and the valid values for column 2 are C and D. Let's assume the look-up table looks like this: Column 1 Column 2 Column 3 A C Look-up table result E A D Look-up table result E B C Look-up table result F B D Look-up table result G In the table above it is easy to see that if column 1 is A then column 2 is don't care and the top 2 rows could be combined into 1 that says "Don't care" in column 2. Is there a ready-made application available that could do this for me (of course, with bigger and more complex tables)?

    B N M 3 Replies Last reply
    0
    • A arnold_w

      Let's assume I have a simple look-up table with columns 1, 2, and 3. The valid values for column 1 are A and B and the valid values for column 2 are C and D. Let's assume the look-up table looks like this: Column 1 Column 2 Column 3 A C Look-up table result E A D Look-up table result E B C Look-up table result F B D Look-up table result G In the table above it is easy to see that if column 1 is A then column 2 is don't care and the top 2 rows could be combined into 1 that says "Don't care" in column 2. Is there a ready-made application available that could do this for me (of course, with bigger and more complex tables)?

      B Offline
      B Offline
      BillWoodruff
      wrote on last edited by
      #2

      There is an algorithms forum here where this could be posted, or you could ask this question on the C# language forum, or the C# QA Forum. This is an interesting problem.

      «A man will be imprisoned in a room with a door that's unlocked and opens inwards ... as long as it does not occur to him to pull rather than push»  Wittgenstein

      1 Reply Last reply
      0
      • A arnold_w

        Let's assume I have a simple look-up table with columns 1, 2, and 3. The valid values for column 1 are A and B and the valid values for column 2 are C and D. Let's assume the look-up table looks like this: Column 1 Column 2 Column 3 A C Look-up table result E A D Look-up table result E B C Look-up table result F B D Look-up table result G In the table above it is easy to see that if column 1 is A then column 2 is don't care and the top 2 rows could be combined into 1 that says "Don't care" in column 2. Is there a ready-made application available that could do this for me (of course, with bigger and more complex tables)?

        N Offline
        N Offline
        NeverJustHere
        wrote on last edited by
        #3

        This looks like a standard use of an AI technique for building decision trees. Normally, in an AI context, the data would be noisy, so we would be looking for rules that apply over a certain threshold. From your description, it sounds like your data will be clean, and your rules perfect. Look at a tool called WEKA, it can generate these types of rules, or an algorithm called ID3.

        A 1 Reply Last reply
        0
        • A arnold_w

          Let's assume I have a simple look-up table with columns 1, 2, and 3. The valid values for column 1 are A and B and the valid values for column 2 are C and D. Let's assume the look-up table looks like this: Column 1 Column 2 Column 3 A C Look-up table result E A D Look-up table result E B C Look-up table result F B D Look-up table result G In the table above it is easy to see that if column 1 is A then column 2 is don't care and the top 2 rows could be combined into 1 that says "Don't care" in column 2. Is there a ready-made application available that could do this for me (of course, with bigger and more complex tables)?

          M Offline
          M Offline
          Mike Nordell
          wrote on last edited by
          #4

          Run-time or compile-time? If compile-time, gperf (GNU perfect hash) could probably help.

          1 Reply Last reply
          0
          • N NeverJustHere

            This looks like a standard use of an AI technique for building decision trees. Normally, in an AI context, the data would be noisy, so we would be looking for rules that apply over a certain threshold. From your description, it sounds like your data will be clean, and your rules perfect. Look at a tool called WEKA, it can generate these types of rules, or an algorithm called ID3.

            A Offline
            A Offline
            arnold_w
            wrote on last edited by
            #5

            So I had a look at some tutorials on WEKA and it seems it can take my data in table format and create a decision tree out of it. But is it possible to get a reduced table (with don't cares inserted where applicable) from the decision tree? I want the end result to be a condensed table, not a decision tree.

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups