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 7623997
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T04:50:52+00:00 2026-05-31T04:50:52+00:00

Anyone know how to implement binomial coefficient calculation in parallel ? Any resource for

  • 0

Anyone know how to implement binomial coefficient calculation in parallel ?
Any resource for multi-core or CUDA would be helpful, thank you.

  • 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-31T04:50:54+00:00Added an answer on May 31, 2026 at 4:50 am

    I would start off by doing the following.

    • Create an array of size (n + 1) and fill it with 1, 1, 2, 3, …. n.
    • Perform an inclusive scan on this array with a product operation. At
      this point you will have array[n] = n!. i.e. array[0] = 0!, array1
      = 1! array[100] = 100! and so on.
    • Now that you have every factorial from 0! to n!, you can perform (n! / p! * (n – p)!) very easily.

    The first and the last operations may need custom kernels. The second operation can be done using thrust and the inclusive_scan operation.

    EDIT

    As for the drawbacks, as mentioned above in the comments, there will be precison issues even with 64 bit integers at reasonable large size of n. But this is the basic algorithm that you would need to use.

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

Sidebar

Related Questions

Does anyone know what this scrolling technique is called? I would like to implement
Does anyone know how to implement the standard bubble message that warns users whenever
Does anyone know how to implement an action badge, like the ones seen below
does anyone know is there a way to implement Windows Live ID authentication into
Does anyone know if it is possible to implement playback of an audio file
Does anyone know is there a way to implement Windows Live ID authentication into
Does any one know how to implement In App SMS functionality in iPhone SDK
does anyone know of a native way to implement multiple element select paired with
Anyone know if jsbin.com implements any protection for XSS or other javascript attacks? I
Does anyone know how to implement 3d stacked groups of images like that in

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.