Help on a Recursive Maze

Java Maze is already a recursive program. (I think-if not please let me know if my program is not recusive.) It prints a 3 wherever it moves and wherever it is possible to have that spot as part of the exit path for the Maze. It prints a 7 if the spot is part of the final pathway to the exit. The program supposedly stores the value of the spots it encounters and then backtracks to find the exit strategy. I need help with the following addition:
Modify the maze class so that it prints out the
path of the final solution as it is discovered, without
storing it. If you can help me know what i need to change that would be good too.
Here is the code I have for now with the runner first and the Maze class second. Thanks in advance.
public class MazeSearch
   //  Creates a new maze, prints its original form, tries to
   //  solve it, and prints out its final form.
   public static void main (String[] args)
      Maze labyrinth = new Maze();
      System.out.println (labyrinth);
      if (labyrinth.traverse (0, 0))
         System.out.println ("The maze was successfully solved!");
      else
         System.out.println ("There is no possible path.");
      System.out.println (labyrinth);
public class Maze
   private final int TRIED = 3;
   private final int PATH = 7;
   private int[][] grid = { {1,1,1,0,1,1,0,0,0,1,1,1,1},
                            {1,0,1,1,1,0,1,1,1,1,0,0,1},
                            {0,0,0,0,1,0,1,0,1,0,1,0,0},
                            {1,1,1,0,1,1,1,0,1,0,1,1,1},
                            {1,0,1,0,0,0,0,1,1,1,0,0,1},
                            {1,0,1,1,1,1,1,1,0,1,1,1,1},
                            {1,0,0,0,0,0,0,0,0,0,0,0,0},
                            {1,1,1,1,1,1,1,1,1,1,1,1,1} };
   //  Tries to recursively follow the maze. Inserts special
   //  characters for locations that have been tried and that
   //  eventually become part of the solution.
   public boolean traverse (int row, int column)
      boolean done = false;
      if (valid (row, column))
         grid[row][column] = TRIED;  // this cell has been tried
         if (row == grid.length-1 && column == grid[0].length-1)
            done = true;  // the maze is solved
         else
            done = traverse (row+1, column);     // down
            if (!done)
               done = traverse (row, column+1);  // right
            if (!done)
               done = traverse (row-1, column);  // up
            if (!done)
               done = traverse (row, column-1);  // left
         if (done)  // this location is part of the final path
            grid[row][column] = PATH;
      return done;
   //  Determines if a specific location is valid.
   private boolean valid (int row, int column)
      boolean result = false;
      // check if cell is in the bounds of the matrix
      if (row >= 0 && row < grid.length &&
          column >= 0 && column < grid[row].length)
         //  check if cell is not blocked and not previously tried
         if (grid[row][column] == 1)
            result = true;
      return result;
   //  Returns the maze as a string.
   public String toString ()
      String result = "\n";
      for (int row=0; row < grid.length; row++)
         for (int column=0; column < grid[row].length; column++)
            result += grid[row][column] + "";
         result += "\n";
      return result;
}

Well okay you've posted this a second time in the same forum...
http://forum.java.sun.com/thread.jspa?threadID=5263177&tstart=0
Now go ahead and explain in your own words what it is you think you are supposed to do.

Similar Messages

  • Help!! recursive function call

        *   The function which build the category tree
        public String categoryTree(Statement stat, boolean isMore, int id) {
            if(!isMore) {
                return "";
            else
               String sql = " select t_category_relation.category_relation_id, t_category_relation.level_in, " +
                            " t_category_item.category_item_id, t_category_item.category_name_jpn_NV from " +
                            " t_category_item, t_category_relation " +
                            " where " +
                            " t_category_item.category_item_id = t_category_relation.category_item_id and " +
                            " t_category_relation.parent_id = " + id + " and t_category_relation.parent_id<>0";
    //           return sql;
               try{
                   ResultSet res = stat.executeQuery(sql);
                   String spacer = "";
                   String input = "";
                   while(res.next()) {
                        int level = res.getInt(2);
                         id = res.getInt(1);
                         for(int i = 0; i < level; i ++) {
                            spacer +="   ";
                         input ="+ id: " +id + " NAME  " + res.getString(4) + "\n</td>\n<td align=center>\n<input type=checkbox value=" +String.valueOf(id) + " name=categoryid>\n</td>\n</tr>\n";
                         return "\t\t<TR>\n\t\t\t<TD>" + spacer + input + categoryTree(stat, true, id);
                   if(spacer.equals("")){
                        return input+categoryTree(stat, false, id);
                }catch(SQLException e) {
                        return "SQL Exception";
                return categoryTree(stat, false, id);
        }I am writing a menu generated base on a tree like relation ship that is store in a database. assume
    vegetable has two child and one of the child has another child and so forth.
    But I am getting a result like this:
    vegetable-->
    <1>childe
    <1.1>childe
    but missing <2>child
    because the while loop doesn't continous looping after the 1.1.
    please help me out
    thanx in advance

    >
    Re: help!! recursive function call
    Author: DrClap Aug 3, 2001 1:15 PM
    When you call the method recursively, the second call makes a second query to the database, before you have finished using the ResultSet from the first query. Since you are using the same Statement, executing the second query causes the first query to, um, disappear.
    The API documentation for java.sql.Statement says this: "Only one ResultSet object per Statement object can be open at any point in time. Therefore, if the reading of one ResultSet object is interleaved with the reading of another, each must have been generated by different Statement objects. All statement execute methods implicitly close a statment's current ResultSet object if an open one exists."
    thanx for your reply!
        public String categoryTree(int id) {
               String sql = " select t_category_relation.category_relation_id, t_category_relation.level_in, " +
                            " t_category_item.category_item_id, t_category_item.category_name_jpn_NV from " +
                            " t_category_item, t_category_relation " +
                            " where " +
                            " t_category_item.category_item_id = t_category_relation.category_item_id and " +
                            " t_category_relation.parent_id = " + id;
               try{
                   Connection con = DataSourceUtil.getConnection("name");
                   Statement stat = con.createStatement();
                   ResultSet res = stat.executeQuery(sql);
                   String spacer = "";
                   String row = "";
                   while(res.next()) {
                        int level = res.getInt(2);
                         id = res.getInt(1);
                         for(int i = 0; i < level; i++) {
                            spacer +="   ";
                        row = " \t\t<tr>\n " +
                              " \t\t\t<td colspan='2'>" + spacer + " <a href=inventory_edit_product.jsp?categoryid=" + id +">" + res.getString(4) + "</a></td>\n" +
                              " \t\t</tr>\n ";
                         return (row + categoryTree(id));
                   con.close();
                }catch(SQLException e) {
                        return "<tr><td colspan=2>SQL Exception</td></tr>";
                return "";
        }New I think every recursive call will have it's own statement and resultSet but I am still getting same problem. The while loop stopped when calls reached first base case. Does anybody know why. I expect, assume that while loop will go next when a call reaches the base case which will return "".
    Thanx for help

  • Recursive maze game

    hi, i am trying to develop a recursive maze game. i am able to traversal the maze bt i get an array index out of bound exception. the code which i have develped is (wall of maze is denoted by # n way is denoted as O, path with X )
    public void mazeTraversal(int a , int b)
    print();
    if(a < 0 || b < 0 || a > maze.length || b > maze.length)//to check for boundaries of the maze.
    return;
    }//end if
    maze[a]='X';// assumes that starting location has a path
    print();
    //east direction from the current location
    if(a>=0&&b>=0&&a<=maze.length&&b<=maze.length&&maze[a][b+1]=='0')
    maze[a][b+1]='X';
    mazeTraversal(a,b+1);
    }//end if
    //south direction from the current location
    else if(a>=0&&b>=0&&a<=maze.length&&b<=maze.length&&maze[a+1][b]=='0')
    maze[a+1][b]='X';
    mazeTraversal(a+1,b);
    } //end else if
    //north direction from the current location
    else if(a>=0&&b>=0&&a<=maze.length&&b<=maze.length&&maze[a-1][b]=='0')
    maze[a-1][b]='X';
    mazeTraversal(a-1,b);
    }//end else if
    //west direction from the current location
    else if(a>=0&&b>=0&&a<=maze.length&&b<=maze.length&&maze[a][b-1]=='0')
    maze[a][b-1]='X';
    mazeTraversal(a,b-1);
    }//end else if
    else
    System.out.println("Sorry... no way out");
    }//end method
    thks in advance

    public void mazeTraversal(int a , int b)
           maze[a]='X';
    print();
    if(a < 0 || b < 0 || a > maze.length-1 || b > maze.length-1)//to check for boundaries of the maze.
    return;
    }//end if
    // assumes that starting location has a path
    //print();
    //east direction from the current location
    else if(maze[a][b+1]=='0')//ERROR
    maze[a][b+1]='X';
    mazeTraversal(a,b+1);//ERROR
    }//end if
    //south direction from the current location
    else if(maze[a+1][b]=='0')//ERROR
    maze[a+1][b]='X';
    mazeTraversal(a+1,b);//ERROR
    } //end else if
    //north direction from the current location
    else if(maze[a-1][b]=='0')//ERROR
    maze[a-1][b]='X';
    mazeTraversal(a-1,b);//ERROR
    }//end else if
    //west direction from the current location
    else if(maze[a][b-1]=='0')//ERROR
    maze[a][b-1]='X';
    mazeTraversal(a,b-1);//ERROR
    }//end else if
    else
    System.out.println("Sorry... no way out");
    }//end method
    giving error at line mazeTraversal()
    First Maze:
    #000#000000#
    00#0#0####0#
    ###0#0000#0#
    #0000###0#00
    ####0#0#0#0#
    #00#0#0#0#0#
    ##0#0#0#0#0#
    #00000000#0#
    ######0###0#
    #000000#000#
    First Maze Traversal :
    #000#000000#
    X0#0#0####0#
    ###0#0000#0#
    #0000###0#00
    ####0#0#0#0#
    #00#0#0#0#0#
    ##0#0#0#0#0#
    #00000000#0#
    ######0###0#
    #000000#000#
    #000#000000#
    XX#0#0####0#
    ###0#0000#0#
    #0000###0#00
    ####0#0#0#0#
    #00#0#0#0#0#
    ##0#0#0#0#0#
    #00000000#0#
    ######0###0#
    #000000#000#
    #X00#000000#
    XX#0#0####0#
    ###0#0000#0#
    #0000###0#00
    ####0#0#0#0#
    #00#0#0#0#0#
    ##0#0#0#0#0#
    #00000000#0#
    ######0###0#
    #000000#000#
    #XX0#000000#
    XX#0#0####0#
    ###0#0000#0#
    #0000###0#00
    ####0#0#0#0#
    #00#0#0#0#0#
    ##0#0#0#0#0#
    #00000000#0#
    ######0###0#
    #000000#000#
    #XXX#000000#
    XX#0#0####0#
    ###0#0000#0#
    #0000###0#00
    ####0#0#0#0#
    #00#0#0#0#0#
    ##0#0#0#0#0#
    #00000000#0#
    ######0###0#
    #000000#000#
    #XX#000000#
    XX#X#0####0#
    ###0#0000#0#
    #0000###0#00
    ####0#0#0#0#
    #00#0#0#0#0#
    ##0#0#0#0#0#
    #00000000#0#
    ######0###0#
    #000000#000#
    #XXX#000000#
    XX#X#0####0#
    ###X#0000#0#
    #0000###0#00
    ####0#0#0#0#
    #00#0#0#0#0#
    ##0#0#0#0#0#
    #00000000#0#
    ######0###0#
    #000000#000#
    #XXX#000000#
    XX#X#0####0#
    ###X#0000#0#
    #00X0###0#00
    ####0#0#0#0#
    #00#0#0#0#0#
    ##0#0#0#0#0#
    #00000000#0#
    ######0###0#
    #000000#000#
    #XXX#000000#
    XX#X#0####0#
    ###X#0000#0#
    #00XX###0#00
    ####0#0#0#0#
    #00#0#0#0#0#
    ##0#0#0#0#0#
    #00000000#0#
    ######0###0#
    #000000#000#
    #XXX#000000#
    XX#X#0####0#
    ###X#0000#0#
    #00XX###0#00
    ####X#0#0#0#
    #00#0#0#0#0#
    ##0#0#0#0#0#
    #00000000#0#
    ######0###0#
    #000000#000#
    #XXX#000000#
    XX#X#0####0#
    ###X#0000#0#
    #00XX###0#00
    ####X#0#0#0#
    #00#X#0#0#0#
    ##0#0#0#0#0#
    #00000000#0#
    ######0###0#
    #000000#000#
    #XXX#000000#
    XX#X#0####0#
    ###X#0000#0#
    #00XX###0#00
    ####X#0#0#0#
    #00#X#0#0#0#
    ##0#X#0#0#0#
    #00000000#0#
    ######0###0#
    #000000#000#
    #XXX#000000#
    XX#X#0####0#
    ###X#0000#0#
    #00XX###0#00
    ####X#0#0#0#
    #00#X#0#0#0#
    ##0#X#0#0#0#
    #000X0000#0#
    ######0###0#
    #000000#000#
    #XXX#000000#
    XX#X#0####0#
    ###X#0000#0#
    #00XX###0#00
    ####X#0#0#0#
    #00#X#0#0#0#
    ##0#X#0#0#0#
    #000XX000#0#
    ######0###0#
    #000000#000#
    #XXX#000000#
    XX#X#0####0#
    ###X#0000#0#
    #00XX###0#00
    ####X#0#0#0#
    #00#X#0#0#0#
    ##0#X#0#0#0#
    #000XXX00#0#
    ######0###0#
    #000000#000#
    #XXX#000000#
    XX#X#0####0#
    ###X#0000#0#
    #00XX###0#00
    ####X#0#0#0#
    #00#X#0#0#0#
    ##0#X#0#0#0#
    #000XXXX0#0#
    ######0###0#
    #000000#000#
    #XXX#000000#
    XX#X#0####0#
    ###X#0000#0#
    #00XX###0#00
    ####X#0#0#0#
    #00#X#0#0#0#
    ##0#X#0#0#0#
    #000XXXXX#0#
    ######0###0#
    #000000#000#
    #XXX#000000#
    XX#X#0####0#
    ###X#0000#0#
    #00XX###0#00
    ####X#0#0#0#
    #00#X#0#0#0#
    ##0#X#0#X#0#
    #000XXXXX#0#
    ######0###0#
    #000000#000#
    #XXX#000000#
    XX#X#0####0#
    ###X#0000#0#
    #00XX###0#00
    ####X#0#0#0#
    #00#X#0#X#0#
    ##0#X#0#X#0#
    #000XXXXX#0#
    ######0###0#
    #000000#000#
    #XXX#000000#
    XX#X#0####0#
    ###X#0000#0#
    #00XX###0#00
    ####X#0#X#0#
    #00#X#0#X#0#
    ##0#X#0#X#0#
    #000XXXXX#0#
    ######0###0#
    #000000#000#
    #XXX#000000#
    XX#X#0####0#
    ###X#0000#0#
    #00XX###X#00
    ####X#0#X#0#
    #00#X#0#X#0#
    ##0#X#0#X#0#
    #000XXXXX#0#
    ######0###0#
    #000000#000#
    #XXX#000000#
    XX#X#0####0#
    ###X#000X#0#
    #00XX###X#00
    ####X#0#X#0#
    ##0#X#0#X#0#
    ##0#X#0#X#0#
    #000XXXXX#0#
    ######0###0#
    #000000#000#
    #XXX#000000#
    XX#X#0####0#
    ###X#00XX#0#
    #00XX###X#00
    ####X#0#X#0#
    #00#X#0#X#0#
    ##0#X#0#X#0#
    #000XXXXX#0#
    ######0###0#
    #000000#000#
    #XXX#000000#
    XX#X#0####0#
    ###X#0XXX#0#
    #00XX###X#00
    ####X#0#X#0#
    #00#X#0#X#0#
    ##0#X#0#X#0#
    #000XXXXX#0#
    ######0###0#
    #000000#000#
    #XXX#000000#
    XX#X#0####0#
    ###X#XXXX#0#
    #00XX###X#00
    ####X#0#X#0#
    #00#X#0#X#0#
    ##0#X#0#X#0#
    #000XXXXX#0#
    ######0###0#
    #000000#000#
    #XXX#000000#
    XX#X#X####0#
    ###X#XXXX#0#
    #00XX###X#00
    ####X#0#X#0#
    #00#X#0#X#0#
    ##0#X#0#X#0#
    #000XXXXX#0#
    ######0###0#
    #000000#000#
    #XXX#X00000#
    XX#X#X####0#
    ###X#XXXX#0#
    #00XX###X#00
    ####X#0#X#0#
    #00#X#0#X#0#
    ##0#X#0#X#0#
    #000XXXXX#0#
    ######0###0#
    #000000#000#
    #XXX#XX0000#
    XX#X#X####0#
    ###X#XXXX#0#
    #00XX###X#00
    ####X#0#X#0#
    #00#X#0#X#0#
    ##0#X#0#X#0#
    #000XXXXX#0#
    ######0###0#
    #000000#000#
    #XXX#XXX000#
    XX#X#X####0#
    ###X#XXXX#0#
    #00XX###X#00
    ####X#0#X#0#
    #00#X#0#X#0#
    ##0#X#0#X#0#
    #000XXXXX#0#
    ######0###0#
    #000000#000#
    #XXX#XXXX00#
    XX#X#X####0#
    ###X#XXXX#0#
    #00XX###X#00
    ####X#0#X#0#
    #00#X#0#X#0#
    ##0#X#0#X#0X
    #000XXXXX#0#
    ######0###0#
    #000000#000#
    #XXX#XXXXX0#
    XX#X#X####0#
    ###X#XXXX#0#
    #00XX###X#00
    ####X#0#X#0#
    #00#X#0#X#0#
    ##0#X#0#X#0#
    #000XXXXX#0#
    ######0###0#
    #000000#000#
    #XXX#XXXXXX#
    XX#X#X####0#
    ###X#XXXX#0#
    #00XX###X#00
    ####X#0#X#0#
    #00#X#0#X#0#
    ##0#X#0#X#0#
    #000XXXXX#0#
    ######0###0#
    #000000#000#
    #XXX#XXXXXX#
    XX#X#X####X#
    ###X#XXXX#0#
    #00XX###X#00
    ####X#0#X#0#
    #00#X#0#X#0#
    ##0#X#0#X#0#
    #000XXXXX#0#
    ######0###0#
    #000000#000#
    #XXX#XXXXXX#
    XX#X#X####X#
    ###X#XXXX#X#
    #00XX###X#00
    ####X#0#X#0#
    #00#X#0#X#0#
    ##0#X#0#X#0#
    #000XXXXX#0#
    ######0###0#
    #000000#000#
    ------------------------Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 12
         at Maze.mazeTraversal(Maze.java:46)
         at Maze.mazeTraversal(Maze.java:49)
         at Maze.mazeTraversal(Maze.java:55)
         at Maze.mazeTraversal(Maze.java:55)
         at Maze.mazeTraversal(Maze.java:55)
         at Maze.mazeTraversal(Maze.java:49)
         at Maze.mazeTraversal(Maze.java:49)
         at Maze.mazeTraversal(Maze.java:49)
         at Maze.mazeTraversal(Maze.java:49)
         at Maze.mazeTraversal(Maze.java:49)
    #XXX#XXXXXX#
    XX#X#X####X#
    ###X#XXXX#X#
    #00XX###X#X0
    ####X#0#X#0#
    #00#X#0#X#0#
    ##0#X#0#X#0#
    #000XXXXX#0#
    ######0###0#
    #000000#000#
    #XXX#     at Maze.mazeTraversal(Maze.java:62)
    at Maze.mazeTraversal(Maze.java:62)
         at Maze.mazeTraversal(Maze.java:68)
         at Maze.mazeTraversal(Maze.java:68)
         at Maze.mazeTraversal(Maze.java:68)
         at Maze.mazeTraversal(Maze.java:62)
         at Maze.mazeTraversal(Maze.java:62)
         at Maze.mazeTraversal(Maze.java:62)
         at Maze.mazeTraversal(Maze.java:62)
         at Maze.mazeTraversal(Maze.java:62)
         at MazXXXXXX#
    XX#X#X####X#
    ###X#XXXX#X#
    #00XX###X#XX
    ####X#0#X#0#
    #00#X#0#X#0#
    ##0#X#0#X#0#
    #000XXXXX#0#
    ######0###0#
    #000000#000#
    e.mazeTraversal(Maze.java:49)
         at Maze.mazeTraversal(Maze.java:49)
         at Maze.mazeTraversal(Maze.java:49)
         at Maze.mazeTraversal(Maze.java:49)
         at Maze.mazeTraversal(Maze.java:55)
         at Maze.mazeTraversal(Maze.java:55)
         at Maze.mazeTraversal(Maze.java:55)
         at Maze.mazeTraversal(Maze.java:55)
         at Maze.mazeTraversal(Maze.java:49)
         at Maze.mazeTraversal(Maze.java:55)
         at Maze.mazeTraversal(Maze.java:55)
         at Maze.mazeTraversal(Maze.java:55)
         at Maze.mazeTraversal(Maze.java:49)
         at Maze.mazeTraversal(Maze.java:49)
         at Maze.mazeTraversal(Maze.java:62)
         at Maze.mazeTraversal(Maze.java:49)
         at TestMaze.main(TestMaze.java:51)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Please Help - Permutations using recursion..

    Please some body help me in generating permutaions using recursion..exact guidelines are as follows..
    Producing consecutive permutations.Need to develop a method that lists one by one all permutations of the numbers 1, 2, �, n (n is a positive integer).
    (a) Recursive method . Given a verbal description of the algorithm listing all permutations one by one, you are supposed to develop a recursive method with the following header:
    public static boolean nextPermutation(int[] array)The method receives an integer array parameter which is a permutation of integers 1, 2, �, n. If there is �next� permutation to the permutation represented by the array, then the method returns true and the array is changed so that it represents the �next� permutation. If there is no �next� permutation, the method returns false and does not change the array.
    Here is a verbal description of the recursive algorithm you need to implement:
    1. The first permutation is the permutation represented by the sequence (1, 2, �, n).
    2. The last permutation is the permutation represented by the sequence (n, �, 2, 1).
    3. If n a ,...,a 1 is an arbitrary permutation, then the �next� permutation is produced by
    the following procedure:
    (i) If the maximal element of the array (which is n) is not in the first position of the array, say i n = a , where i > 1, then just swap i a and i-1 a . This will give you the �next� permutation in this case.
    (ii) If the maximal element of the array is in the first position, so 1 n = a , then to find
    the �next� permutation to the permutation ( ,..., ) 1 n a a , first find the �next�
    permutation to ( ,..., ) 2 n a a , and then add 1 a to the end of thus obtained array of (n-1) elements.
    (iii) Consecutively applying this algorithm to permutations starting from (1, 2, �, n),you will eventually list all n! possible permutations. The last one will be (n, �, 2, 1).For example, below is the sequence of permutations for n = 3 .
    Please help...i have trying this for long time
    plesae help...i apreciate your time..and help..thank you

    public class Permu {
        public static boolean nextPermutation(int a[]) {
                return(permute(a, 0));
        public static boolean permute(int v[], int start) {
             int n = v.length;
             if (start == (n - 1)) {       //if its the end of the sequence genereated then print them
                count++;
                //print(v,n);
                return false;
            } else {
                for (int i = start; i < n; i++) { //swap the start element with the ith element to get n first sequeces
                    int temp = v[start];
                    v[start] = v;
    v[i] = temp;
    permute(v, start + 1);
    //of the n the first is kept constant the same is applied for the rest sequence
    //int tmp = v[i];
    v[i] = v[start];
    v[start] = temp;
    return true;
         public static void main(String[] args) {
    int v[] = {1, 2};//this is the array which should contain the items      to be permuted
    do{
    for(int i=0;i<2;i++)
    System.out.print(v[i]);
    System.out.println();
    }while(nextPermutation(v));
    [i]Output:
    123
    123
    123
    123
    123
    This is exact code i am trying to run...pls someone help me out...                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Help needed with recursion algorithm..

    I can't seems to figure out which recursion method to use, if anyone can give me some advice, pls do..
    Input: There is a row of n elecments with the initial value of 1.
    Output: Change all the 1s to 0s using the following conditions.
    -The first element can change from 1 to 0, and 0 to 1 at any time (without conditions).
    -While the rest of the elements can only be changed to 0 when the preceeding element is 1 and all other elements are 0.
    For example, when n = 3
    1 1 1 - initial state of all elements
    0 1 1 - change first element to 0 w/o condition
    0 1 0 - change third element to 0 as only second element is 1 and rest are 0
    1 1 0 - change first element to 1 w/0 condition
    1 0 0 - change second element to 0 as only first element is 1 and rest are 0
    0 0 0 - change first element to 0 w/o condition
    I really can't think of a recursive method to work this out, and am desperate to know the answer. Can anyone please help?

    Sorry about it, you can change the rest of the bit back to 1 but provided that the preceeding bit is also 1.
    and that makes the question:
    Input: There is a row of n elecments with the initial value of 1.
    Output: Change all the 1s to 0s using the following conditions.
    -The first element can change from 1 to 0, and 0 to 1 at any time (without conditions).
    -While the rest of the elements can only be changed to 0 or 1 when the preceeding element is 1 and all other elements are 0.
    For example, when n = 3
    1 1 1 - initial state of all elements
    0 1 1 - change first element to 0 w/o condition
    0 1 0 - change third element to 0 as only second element is 1 and rest are 0
    1 1 0 - change first element to 1 w/0 condition
    1 0 0 - change second element to 0 as only first element is 1 and rest are 0
    0 0 0 - change first element to 0 w/o condition
    I'll check my the person who sets the question and get back to you guys as soon as possible. Thanks a lot for helping me out.

  • Help please with rat maze results code

    Hey guys,
    Just asking for a little help here. I am trying to finish a java program for a class and I am stuck on a bit of code. I've figured out most of the code but am stuck on this piece of code at the end:
         * Gets the maze time for the rodent.
         * @return String The formatted maze time for the rodent.
        public String getMazeTime()
         * Gets a formatted string with information for the rodent and maze.
         * @return String String with information for rodent and maze.
        public String toString()
    Here is the code in its entirety:
    * Provides maze results for a rodent.
    * @author Ray Waite
    * @version December 2006
    public class MazeResult
        // instance variables
        private Rat rodent;
        private Time startTime;
        private Time endTime;
         * Constructor for objects of class MazeResult.
        public MazeResult(Rat inRat)
            myRat = inRat;
         * Sets the rodent.
         * @param inRat Rat object.
        public void setRat(Rat inRat)
            This.setRat = new Rat ();
         * Gets the rodent.
         * @return Rat The Rat object.
        public Rat getRat()
    return myRat;
         * Sets the start time for the rodent.
         * @param inHour Hour of the rodent's start time.
         * @param inMinutes Minutes of the rodent's start time.
         * @param inSeconds Seconds of the rodent's start time.
        public void setStartTime(int inHour, int inMinutes, int inSeconds)
            this.startTime = new Time(inHour, inMinutes, inSeconds);
         * Gets the start time for the rodent.
         * @return Time The start time of the rodent.
        public Time getStartTime()
            if (this.startTime == null)
                return null;
            Time tempStartTime = new Time(this.startTime.getHour(),
                this.startTime.getMinutes(), this.startTime.getSeconds());
            return tempStartTime;
         * Sets the end time for the rodent.
         * @param inHour Hour of the rodent's end time.
         * @param inMinutes Minutes of the rodent's end time.
         * @param inSeconds Seconds of the rodent's end time.
        public void setEndTime(int inHour, int inMinutes, int inSeconds)
            this.endTime = new Time(inHour, inMinutes, inSeconds);
         * Gets the end time for the rodent.
         * @return Time The end time of the rodent.
        public Time getEndTime()
            if (this.endTime == null)
                return null;
            Time tempEndTime = new Time(this.endTime.getHour(),
                this.endTime.getMinutes(), this.endTime.getSeconds());
            return tempEndTime;
         * Gets the maze time for the rodent.
         * @return String The formatted maze time for the rodent.
        public String getMazeTime()
         * Gets a formatted string with information for the rodent and maze.
         * @return String String with information for rodent and maze.
        public String toString()
    I would very much "love" some help. Thanks.
    Phil

    well, the maze time would probably have something to do with the difference between the start and end times.

  • Guys!! any one can help me in recursive permutation of integer array!!

    this is the description of my problem:
    We are supposed to develop a recursive method with the following header:
    public static boolean nextPermutation(int[] array)
    The method receives an integer array parameter which is a permutation of integers 1, 2, �, n. If there is �next� permutation to the permutation represented by the array, then the method returns true and the array is changed so that it represents the �next� permutation. If there is no �next� permutation, the method returns false and does not change the array.
    Here is a verbal description of the recursive algorithm you need to implement:
    1. The first permutation is the permutation represented by the
    sequence (1, 2, �, n).
    2. The last permutation is the permutation represented by the
    sequence (n, �, 2, 1).
    3. If is an arbitrary permutation, then the �next� permutation is
    produced by the following procedure:
    (i) If the maximal element of the array (which is n) is not in the first
    position of the array, say , where , then just swap and . This
    will give you the �next� permutation in this case.
    (ii) If the maximal element of the array is in the first position, so ,
    then to find the �next� permutation to the permutation , first find
    the �next� permutation to , and then add to the end of thus
    obtained array of (n-1) elements.
    (iii) Consecutively applying this algorithm to permutations starting
    from (1, 2, �, n), you will eventually list all possible
    permutations. The last one will be (n, �, 2, 1).
    For example, below is the sequence of permutations for n = 3 , listed by the described algorithm:
    (0 1 2) ; (0 2 1) ; (2 0 1) ; (1 0 2) ; (1 2 0) ; (2 1 0)
    if any one can help me then please help me!! i am stucked at this position to find permutation of the integer array.
    thanks,

    Sure. Why don't you post the code you already have done, and maybe
    someone here can help you with it.

  • Can I get some help with a recursive function in Java?

    I'm trying to make a FrozenBubble clone in Java.  I'm having trouble with the method that checks for rows with the same color.  Here's what I have now:
    public int checkColors (BubbleNode node, BubbleNode prevNode, int counter) {
    counter--;
    if (node != null && prevNode != null && node.imageX != prevNode.imageX)
    return 0;
    if (counter == 0) {
    fallingList.add (node);
    return 1;
    if (node.left != null && node.left != prevNode) {
    if (checkColors (node.left, node, counter) == 1) {
    fallingList.add (node);
    return 1;
    else
    return 0;
    if (node.right != null && node.right != prevNode) {
    if (checkColors (node.right, node, counter) == 1) {
    fallingList.add (node);
    return 1;
    else
    return 0;
    if (node.topLeft != null && node.topLeft != prevNode) {
    if (checkColors (node.topLeft, node, counter) == 1) {
    fallingList.add (node);
    return 1;
    else
    return 0;
    if (node.topRight != null && node.topRight != prevNode) {
    if (checkColors (node.topRight, node, counter) == 1) {
    fallingList.add (node);
    return 1;
    else
    return 0;
    if (node.bottomLeft != null && node.bottomLeft != prevNode) {
    if (checkColors (node.bottomLeft, node, counter) == 1) {
    fallingList.add (node);
    return 1;
    else
    return 0;
    if (node.bottomRight != null && node.bottomRight != prevNode) {
    if (checkColors (node.bottomRight, node, counter) == 1) {
    fallingList.add (node);
    return 1;
    else
    return 0;
    if (fallingList.size () > 2) {
    deleteNodes ();
    return 0;
    The bubbles are six sided nodes, and imageX is the x coordinate for the start of the bubble in the bubble image, you can think of it as the color of the bubble.  I also posted this on the UbuntuForums here, but since it seems like the only person willing to help me has gone to bed and the program is already late, I'm thought I would also post it here.
    Thanks!

    "Green" usually indicates a problem with graphic card drivers; see http://forums.adobe.com/thread/945765

  • I need help with this recursion method

         public boolean findTheExit(int row, int col) {
              char[][] array = this.getArray();
              boolean escaped = false;
              System.out.println("row" + " " + row + " " + "col" + " " + col);
              System.out.println(array[row][col]);
              System.out.println("escaped" + " " + escaped);
              if (possible(row, col)){
                   System.out.println("possible:" + " " + possible(row,col));
                   array[row][col] = '.';
              if (checkBorder(row, col)){
                   System.out.println("check border:" + " " + checkBorder(row,col));
                   escaped = true;
              else {
                    System.out.println();
                    escaped = findTheExit(row+1, col);
                    if (escaped == false)
                    escaped = findTheExit(row, col+1);
                    else if (escaped == false)
                    escaped = findTheExit(row-1, col);
                    else if (escaped == false)
                    escaped = findTheExit(row, col-1);
              if (escaped == true)
                   array[row][col] = 'O';
              return escaped;
         }I am having difficulties with this recursion method. What I wanted here is that when :
    if escaped = findTheExit(row+1, col);  I am having trouble with the following statement:
    A base case has been reached, escaped(false) is returned to RP1. The algorithm backtracks to the call where row = 2 and col = 1 and assigns false to escaped.
    How do I fix this code?
    I know what's wrong with my code now, even though that if
    if (possible(row, col))
    [/code[
    returns false then it will go to if (escaped == false)
                   escaped = findTheExit(row, col+1);
    how do I do this?

    Okay I think I got the problem here because I already consult with the instructor, he said that by my code now I am not updating my current array if I change one of the values in a specific row and column into '.' . How do I change this so that I can get an update array. He said to me to erase char[][] array = getArray and replace it with the array instance variable in my class. But I don't have an array instance variable in my class. Below is my full code:
    public class ObstacleCourse implements ObstacleCourseInterface {
         private String file = "";
         public ObstacleCourse(String filename) {
              file = filename;
         public boolean findTheExit(int row, int col) {
              boolean escaped = false;
              //System.out.println("row" + " " + row + " " + "col" + " " + col);
              //System.out.println(array[row][col]);
              //System.out.println("escaped" + " " + escaped);
              if (possible(row, col)){
                   //System.out.println("possible:" + " " + possible(row,col) + "\n");
                   array[row][col] = '.';
                   if (checkBorder(row, col)){
                   escaped = true;
                   else {
                    escaped = findTheExit(row+1, col);
                    if (escaped == false)
                    escaped = findTheExit(row, col+1);
                    else if (escaped == false)
                    escaped = findTheExit(row-1, col);
                    else if (escaped == false)
                    escaped = findTheExit(row, col-1);
              if (escaped == true)
                   array[row][col] = 'O';
              return escaped;
         public char[][] getArray() {
              char[][] result = null;
              try {
                   Scanner s = new Scanner(new File(file));
                   int row = 0;
                   int col = 0;
                   row = s.nextInt();
                   col = s.nextInt();
                   String x = "";
                   result = new char[row][col];
                   s.nextLine();
                   for (int i = 0; i < result.length; i++) {
                        x = s.nextLine();
                        for (int j = 0; j < result.length; j++) {
                             result[i][j] = x.charAt(j);
              } catch (Exception e) {
              return result;
         public int getStartColumn() {
              char[][] result = this.getArray();
              int columns = -1;
              for (int i = 0; i < result.length; i++) {
                   for (int j = 0; j < result[i].length; j++) {
                        if (result[i][j] == 'S')
                             columns = j;
              return columns;
         public int getStartRow() {
              char[][] result = this.getArray();
              int row = -1;
              for (int i = 0; i < result.length; i++) {
                   for (int j = 0; j < result[i].length; j++) {
                        if (result[i][j] == 'S')
                             row = i;
              return row;
         public boolean possible(int row, int col) {
              boolean result = false;
              char[][] array = this.getArray();
              if (array[row][col] != '+' && array[row][col] != '.')
                   result = true;
              return result;
         public String toString() {
              String result = "";
              try {
                   Scanner s = new Scanner(new File(file));
                   s.nextLine();
                   while (s.hasNextLine())
                        result += s.nextLine() + "\n";
              } catch (Exception e) {
              return result;
         public boolean checkBorder(int row, int col) {
              char[][] array = this.getArray();
              boolean result = false;
              int checkRow = 0;
              int checkColumns = 0;
              try {
                   Scanner s = new Scanner(new File(file));
                   checkRow = s.nextInt();
                   checkColumns = s.nextInt();
              } catch (Exception e) {
              if ((row + 1 == checkRow || col + 1 == checkColumns) && array[row][col] != '+')
                   result = true;
              return result;
    I thought that my problem would be not to read the file using the try and catch everytime in the method. How do I do this?? Do I have to create an array instance variable in my class?

  • Update help might need recursion

    Hi all:
    I have a problem with a sql statement that maybe someone could help me with. I am not a PL/SQL PROGRAMMER but have been given this task. I have some experience with T-SQL. I can do this with Dynamic sql fine, however I need to do it with a regular update statement as I need to include it between a BEGIN and END statement which doesn't like Dynamic sql or allow me to spool it to a file. There are two similiar update statement that do the same thing but for different records. Heres a simple idea of what I need to do.
    -- Update Questionnaire 1 ID's For Parent Questions
    spool update_question_ids.sql
    SELECT 'UPDATE X.TEMP_UPDATE_QUES1
    SET q1_parent_question_id ='||a.questions_xref_id||'
    WHERE q1_parent_id ='||a.obs_ques_xref_id||';'
    FROM X.TEMP_SYNC_QUES a, X.TEMP_UPDATE_QUES1 b
    WHERE a.questions_xref_id = b.q1_questions_xref_id
    AND a.obs_ques_xref_id = b.q1_obs_ques_xref_id;
    spool off;
    @update_question_ids.sql
    COMMIT;
    In simplier terms:
    parent_question question_id questions_xref_id
    308 3
    308 3917 67
    308 423 18
    I added a fourth column called parent_question_xref_id and need to populate it with the correct question_xref_id of the parent so it looks like this.
    parent_question question_id question_xref_id parent_question_xref_id
    308 3
    308 3917 67 3
    308 423 18 3
    Anyone have any ideas? Thanks --Matt
    Edited by: user453991 on Jan 13, 2009 1:28 PM

    Hi, Matt,
    Welcome to the forum!
    Whenver you have a question, it helps to post:
    (1) The version of Oracle (and any other relevant software) you're using
    (2) A little sample data (just enough to show what the problem is) from all the relevant tables
    (3) The results you want from that data (If you're asking about a DML statement, such as UPDATE, this will be the state of the tables when everything is finished.)
    Executable SQL statements (like "CREATE TABLE AS ..." or "INSERT ..." statements) are best for (2).
    Formatted tabular output is okay for (3). Type &#123;code&#125; before and after the tabular text, to preserve spacing. In the results you posted, it's unclear where the NULL columns are because this site remove excess whitespace. This is where &#123;code&#125; tags are very useful.
    From what you did post, I think I can guess the solution.
    There's no need to use SQL-from-SQL (like you're doing) or PL/SQL for this.
    You want to UPDATE several rows of one table with data from another table: an UPDATE statement with a sub-query can do that.
    If you only want to UPDATE rows that have a match in the sub-query, then a lot of the sub-query has to be repeated in the main query's WHERE clause. To avoid that duplication, you can use MERGE instead of UPDATE.
    I think this is what you want to do:
    MERGE INTO     x.temp_update_ques1     dst
    USING     (     SELECT     a.obs_ques_xref_id
              ,     a.questions_xref_id
              FROM     x.temp_sync_ques     a
              ,     x.temp_update_ques1     b
              WHERE     a.questions_xref_id     = b.q1_questions_xref_id
              AND     a.obs_ques_xref_id     = b.q1_obs_ques_xref_id
         ) src
    ON     (src.obs_ques_xref_id     = dst.q1_parent_id)
    WHEN     MATCHED     THEN
         UPDATE     SET     dst.q1_parent_question_id     = src.questions_xref_id
    ;If this does not solve your problem, then post the information listed above.

  • Need help writing a recursive method

    hello, im having problems with this and its already giving me a headache!!
    i have to write a recursive method that receives a parameter n that prints the following:
    1
    12
    123
    1234
    how would i even begin to do this...im lost

    Ernie_9 wrote:
    ok i just got a little problem. it prints
    and i needed
    So its only changing the order it prints it. but where would that be changed? i tried swapping the bottom part where the parameter is modified and the print but it does not workLooks like you are first decrementing the iterator and then incrementing it ....try the other way around

  • Please help me on recursive function call

        *   The function which build the category tree
        public String categoryTree(Statement stat, boolean isMore, int id) {
            if(!isMore) {
                return "";
            else
               String sql = " select t_category_relation.category_relation_id, t_category_relation.level_in, " +
                            " t_category_item.category_item_id, t_category_item.category_name_jpn_NV from " +
                            " t_category_item, t_category_relation " +
                            " where " +
                            " t_category_item.category_item_id = t_category_relation.category_item_id and " +
                            " t_category_relation.parent_id = " + id + " and t_category_relation.parent_id<>0";
    //           return sql;
               try{
                   ResultSet res = stat.executeQuery(sql);
                   String spacer = "";
                   String input = "";
                   while(res.next()) {
                        int level = res.getInt(2);
                         id = res.getInt(1);
                         for(int i = 0; i < level; i ++) {
                            spacer +="   ";
                         input ="+ id: " +id + " NAME  " + res.getString(4) + "\n</td>\n<td align=center>\n<input type=checkbox value=" +String.valueOf(id) + " name=categoryid>\n</td>\n</tr>\n";
                         return "\t\t<TR>\n\t\t\t<TD>" + spacer + input + categoryTree(stat, true, id);
                   if(spacer.equals("")){
                        return input+categoryTree(stat, false, id);
                }catch(SQLException e) {
                        return "SQL Exception";
                return categoryTree(stat, false, id);
        } I am writing a recusive function which can generate a tree like category tree for customer navigation purpose.I don't know why my will loop only return once which means if category "vegetable" has two child and one of child has another child but the result will only display vegetable-->child-->grand child instead of vegetable-> 2 child -> one grand child of one of the child.Please help exam the codethax in

    Didn't I already answer this?

  • Powershell help - get a recursive list of user created inbox subfolders based on variable

    I have a requirement to identify all user mailboxes that have user created subfolders under the Inbox folder.  I can use the following powershell command to obtain the information I need, but only for one user at a time:
    Get-mailboxfolderstatistics username -FolderScope Inbox | select name, foldertype | Where-Object {$_.FolderType-eq "User Created"}
    I have a list of about 700 usernames which can be loaded into a variable.  I've tried experiementing with the ForEach-Object cmdlet but I can't seem to get it to work.  Is there a way to get my command above to loop through all usernames stored in
    a variable, and then export to CSV?

    For all users dynamically...
    get-mailbox | Get-mailboxfolderstatistics -FolderScope Inbox | Where-Object {$_.FolderType -eq "User Created"} | Select Identity, Name, FolderType | Export-CSV Mailbox-Folder.csv -NoTypeInformation
    From a variable...
    $mailboxes = get-mailbox . .. . . 
    $mailboxes | Get-mailboxfolderstatistics -FolderScope Inbox | Where-Object {$_.FolderType -eq "User Created"} | Select Identity, Name, FolderType | Export-CSV Mailbox-Folder.csv -NoTypeInformation
    Blog |
    Get Your Exchange Powershell Tip of the Day from here

  • Iterative maze generation with a stack and queue

    I searched the forums, and a couple of hits were interesting, particularly http://forum.java.sun.com/thread.jsp?forum=54&thread=174337 (the mazeworks site is very very cool), but they all centered on using a recursive method to create a maze. Well, my recursive maze generation is fine; it seems to me that recursion lends itself quite well to this particular form of abuse, so well in fact that I am having trouble wrapping my head around an iterative approach. :) I need to create a maze iteratively, using a stack if specified by the user, else a queue. I can vaguely see how a stack simulates recursion but conceptualization of the queue in particular is making my hair hurt. So I was just wondering if anyone had any thoughts or pointers that they wouldn't mind explaining to me to help me with this project. Thanks kindly.
    Maduin

    Stacks (i.e. a first in, last out data storage structure) are very, very closely tied to recursive calls - after all, the only reason that the recursion works at all is because the language is placing the current state of the method on a stack before it calls the method again.
    As for using queue's to implement the same type of thing, are you allowed to use a dequeue (double ended queue)? If so, dequeue's are a pretty common way of implementing a stack - they allow you to implement both FILO and FIFO (first in, first out) structures by whether you pull the stored item from the head or tail of the dequeue.
    If you are talking about a FIFO, then that's a different story - let us know!
    - K
    PS - recursion is an odd topic to get your head around - keep working at it! The biggest thing to realize is that all recursive routines must have SOME way to exit them without continuing the recursion. The design of a recursive call, then, is generally easiest to do when implemented by answering the following question: "Under what condition should the recursion stop?", and then building the routine backwards from there.

  • XML File Travesing Help

    Iteration using Recursive Function
    Thanks a lot :)

    Not sure if it's the best you can get but QAD:
    var my_xml:XML =
    <cities>
    <city name="London">
    <city name="Manchester">
    <city name="Cairo">
    </city>
    <city name="Hawai">
    </city>
    </city>
    <city name="New York">
    <city name="Mexico City">
    </city>
    <city name="Tokyo">
    </city>
    </city>
    </city>
    </cities>;
    traceCities( my_xml.city[0] );
    function traceCities( xml:XML ):void
    trace( xml.@name );
    if ( xml.children() )
    for each( var node in xml.children() )
    traceCities( node );
    manofspirit wrote:
    > Iteration using Recursive Function
    > Thanks a lot :)
    >
    > Hello All
    > I have tried a lot to traverse this xml file using
    recursive function,
    > but vain
    > Im sure you guys will help me out
    >
    > recursive function shuold iterate and trace name filed
    as following
    >
    > london
    > manchester
    > cairo
    > hawai
    > newyork
    > maxico city
    > tokyo
    >
    >
    > XML File
    >
    >
    > <city name="London">
    > <city name="Manchester">
    > <city name="Cairo">
    > </city>
    > <city name="Hawai">
    > </city>
    > </city>
    > <city name="New York">
    > <city name="Mexico City">
    > </city>
    > <city name="Tokyo">
    > </city>
    > </city>
    > </city>
    >

Maybe you are looking for

  • Photoshop CS3 Camera Raw Update: unable to open Nikon D5200 Raw files

    I have a Nikon D5200, so I cannot view my raw files (.NEF) files in photoshop CS3 and I downloaded the Camera Raw 4.6 update, and installed it using the manual installation instructions found here: Adobe - Photoshop : For Windows : Camera Raw 4.6 upd

  • How can I get my songs from my old itunes to my new one?

    I've recently changed computers. I installed iTunes on my new laptop and I plugged my iPod into it, the songs I bought from iTunes were transferred but the others originally from CDs were not transferred. I don't know how to fix this and I have over

  • Error during combining pictures together

    Hello, I'm trying to combine one jpg file and 4 png files together as the attachment. The original pictures are in a network folder and I mapped the network folder as z:\ in windows explorer. At the beginning, it can work well, but after serveral hou

  • Should I install the latest version of silverlight on my mac laptop?

    Should I install the latest version of silverlight on my mac laptop?

  • Create input gridview in Access Form

    Hi, I want to create a gridview same as AB.net or C#.net windows forms application. Some cells of the grid view will contain listbox and some will contain textbox. The user will enter data in the grid view. Then after clicking on submit button the da