Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4332722
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T10:17:44+00:00 2026-05-21T10:17:44+00:00

I’m trying to understand a para in my AI textbook, and need help with

  • 0

I’m trying to understand a para in my AI textbook, and need help with this.

Essentially, my question is why are there 2^(2^n) functions on n attributes if it takes 2^n bits to define a function?

Here is the para from the text (source: AI: A Modern Approach, Stuart Russell and Peter Norvig):

Decision Trees are good for some kinds
of functions and bad for others. Is
there any kind of representation that
is efficient for all kinds of
functions? Unfortunately, no. We can
show this in a very general way.
Consider the set of all Boolean
functions on n attributes. How many
different functions are in this set?
This is just the number of different
truth tables that we can write down,
because the function is defined by its
truth table. The truth table has 2^n
rows, because each input case is
described by n attributes. We can
consider the ‘answer’ column of the
table as a 2^n-bit number that
defines the function. No matter what
representation we use for functions,
some of the functions (almost all of
them, in fact) are going to require at
least that many bits to represent.

If it takes 2^n bits to define the
function, then there are 2^(2^n)
different functions on n attributes.

A second question is: Why do we need 2^n bit number (see bold above), I thought we’d need n bit number only, for example if we have 3 attributes, we can define 2^3=8 functions, thus needing only 3 bits to define all 8 functions (000, 001, 010, 011, etc).

i’ve been thinking about this for awhile, not sure what eludes me, thank you for your time in looking into this!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T10:17:45+00:00Added an answer on May 21, 2026 at 10:17 am

    I think I get it, and I think there might be a mistake in your answer…

    Let me explain according to my understanding of your example for 3 attributes..

    n = 3

    Row 1 000

    Row 2 001

    Row 3 010

    …

    Row 8 111

    Function 0 : False for every row therefore 0 0 0 0 0 0 0 0 (8 ‘0’s as there are 8 rows)

    Function 1: True for row 1, false for the rest: 00000001

    Function 2: True for row 2, false for the rest: 00000010

    …

    Thus there are 2^8 functions, which is 2^(2^3) i.e. 2^(2^n).

    Correct?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to understand how to use SyndicationItem to display feed which is
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
This could be a duplicate question, but I have no idea what search terms
I know there's a lot of other questions out there that deal with this
I'm trying to convert HTML to plain text. I get many &\#8217; &\#8220; etc.
Basically, what I'm trying to create is a page of div tags, each has
link Im having trouble converting the html entites into html characters, (&# 8217;) i
For some reason, after submitting a string like this Jack’s Spindle from a text
this is what i have right now Drawing an RSS feed into the php,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.