DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2006
    Posts
    3

    Question Permutation recursive

    Please help
    I need help in java..
    need to develop a recursive function which can generate all possible permutations given a array of elements.
    needs to some thing like this

    public staic boolean nextPermutation(int []a)


    i will appreciate your help pls help
    thanks in advance
    Last edited by i.mogal; 04-24-2006 at 07:37 AM.

  2. #2
    Join Date
    Dec 2004
    Location
    San Bernardino County, California
    Posts
    1,468
    Read this discussion and look through the exercises:

    http://www.cs.princeton.edu/introcs/23recursion/

  3. #3
    Join Date
    Apr 2006
    Posts
    3
    thank you..

Similar Threads

  1. Re: Recursive sql query - Lot's of tips
    By Sparky in forum Database
    Replies: 0
    Last Post: 10-15-2002, 12:13 AM
  2. Recursive SQL Query
    By Andrew Merisanu in forum Database
    Replies: 1
    Last Post: 08-08-2002, 02:53 PM
  3. How to stop a recursive trigger in db2!!
    By Rodrigo in forum Database
    Replies: 1
    Last Post: 12-15-2000, 11:25 PM
  4. Hierarchial recordsets, recursive relationships in Access
    By Chris McCann in forum VB Classic
    Replies: 0
    Last Post: 10-20-2000, 12:02 PM
  5. Recursive Search (Org Chart) in SQL Server
    By Alexei Khrapko in forum Database
    Replies: 0
    Last Post: 08-14-2000, 10:02 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links