Auto Topic: row
auto_row | topic
Coverage Score
1
Mentioned Chunks
132
Mentioned Docs
17
Required Dimensions
definitionpros_cons
Covered Dimensions
definitionpros_cons
Keywords
row
Relations
| Source | Type | Target | W |
|---|---|---|---|
| Auto Topic: row | CO_OCCURS | Auto Topic: self | 50 |
| Auto Topic: row | CO_OCCURS | Auto Topic: rows | 39 |
| Auto Topic: def | CO_OCCURS | Auto Topic: row | 34 |
| Auto Topic: col | CO_OCCURS | Auto Topic: row | 30 |
| Auto Topic: row | CO_OCCURS | Constraint Satisfaction Problem | 27 |
| Auto Topic: cols | CO_OCCURS | Auto Topic: row | 26 |
| Auto Topic: get_board | CO_OCCURS | Auto Topic: row | 19 |
| Auto Topic: perform_move | CO_OCCURS | Auto Topic: row | 19 |
| Auto Topic: row | CO_OCCURS | Propositional Logic | 17 |
| Auto Topic: row | CO_OCCURS | Auto Topic: vertical | 16 |
| Auto Topic: row | CO_OCCURS | Inference | 15 |
| Auto Topic: len | CO_OCCURS | Auto Topic: row | 12 |
| Auto Topic: row | CO_OCCURS | Problem Formulation | 11 |
| Auto Topic: raise | CO_OCCURS | Auto Topic: row | 11 |
| Auto Topic: copy | CO_OCCURS | Auto Topic: row | 11 |
| Auto Topic: row | CO_OCCURS | State-Space Search | 10 |
| Auto Topic: padx | CO_OCCURS | Auto Topic: row | 10 |
| Auto Topic: row | CO_OCCURS | Logical Agents | 9 |
| Auto Topic: row | CO_OCCURS | Auto Topic: valueerror | 9 |
| Auto Topic: int | CO_OCCURS | Auto Topic: row | 9 |
| Auto Topic: legal_moves | CO_OCCURS | Auto Topic: row | 9 |
| Auto Topic: row | CO_OCCURS | Auto Topic: tkinter | 8 |
| Auto Topic: dominoesgame | CO_OCCURS | Auto Topic: row | 8 |
| Auto Topic: row | CO_OCCURS | Informed Search | 7 |
| AC-3 | CO_OCCURS | Auto Topic: row | 7 |
| Auto Topic: print | CO_OCCURS | Auto Topic: row | 7 |
| Auto Topic: fill | CO_OCCURS | Auto Topic: row | 7 |
| Auto Topic: canvas | CO_OCCURS | Auto Topic: row | 7 |
| Auto Topic: is_legal_move | CO_OCCURS | Auto Topic: row | 7 |
| Auto Topic: row | CO_OCCURS | Auto Topic: scene | 6 |
| Auto Topic: row | CO_OCCURS | Auto Topic: square_size | 6 |
| Auto Topic: import | CO_OCCURS | Auto Topic: row | 6 |
| Auto Topic: pack | CO_OCCURS | Auto Topic: row | 6 |
| Auto Topic: row | CO_OCCURS | Heuristic Function | 5 |
| Auto Topic: row | CO_OCCURS | Uninformed Search | 5 |
| Auto Topic: master | CO_OCCURS | Auto Topic: row | 5 |
| Auto Topic: row | CO_OCCURS | Task Environment | 4 |
| Auto Topic: row | CO_OCCURS | Utility Theory | 4 |
| Arc Consistency | CO_OCCURS | Auto Topic: row | 4 |
| Algorithm Evaluation Criteria | CO_OCCURS | Auto Topic: row | 4 |
Evidence Chunks
| Source | Confidence | Mentions | Snippet |
|---|---|---|---|
assignments CIS5210-Assignments/M2/homework2.py | 0.67 | 17 | elf._board) self._cols = len(self._board[0]) if self._rows else 0 def get_board(self): return self._board def perform_move(self, row, col): b = self._board rows = self._rows cols = self._cols b[row][col] = not b[row][col] if row > 0: b[row - 1][col] = not b[row - 1][col] if row + ... |
assignments CIS5210-Assignments/M4/homework4.py | 0.67 | 16 | l]) and (not b[row + 1][col]) if col + 1 >= self.cols: return False return (not b[row][col]) and (not b[row][col + 1]) def legal_moves(self, vertical): vertical = bool(vertical) b = self.board if vertical: for r in range(self.rows - 1): row = b[r] row2 = b[r + 1] for c in range(s ... |
assignments CIS5210-Assignments/M4/hw4-optimized.py | 0.67 | 16 | d not b[row][col] and not b[row + 1][col] return col + 1 < self.cols and not b[row][col] and not b[row][col + 1] def legal_moves(self, vertical): b = self.board rows = self.rows cols = self.cols if vertical: row_limit = rows - 1 for r in range(row_limit): row1 = b[r] row2 = b[r + ... |
assignments CIS5210-Assignments/M4/homework4.py | 0.67 | 14 | ... , list): raise TypeError("board must be a list of rows") self.rows = len(board) self.cols = len(board[0]) if self.rows else 0 for row in board: if not isinstance(row, list): raise TypeError("board rows must be lists") if len(row) != self.cols: raise ValueError("board must be rect ... |
assignments CIS5210-Assignments/M4/hw4-optimized.py | 0.67 | 14 | ... list): raise TypeError("board must be a list of rows") self.rows = len(board) self.cols = len(board[0]) if self.rows else 0 for row in board: if not isinstance(row, list): raise TypeError("board rows must be lists") if len(row) != self.cols: raise ValueError("board must be recta ... |
assignments CIS5210-Assignments/M3/homework3_grid_navigation_gui.py | 0.67 | 11 | 1, y1, width=1, outline="black", fill="gray50" if scene[row][col] else "white") def transform(self, row, col): x = self.square_size * (col + 0.5) y = self.square_size * (row + 0.5) return (x, y) def inverse_transform(self, event): row = int(event.y / self.square_size) col = int(e ... |
assignments CIS5210-Assignments/M4/homework4.py | 0.67 | 11 | :] for row in self.board]) def successors(self, vertical): for move in self.legal_moves(vertical): new_game = self.copy() new_game.perform_move(move[0], move[1], vertical) yield (move, new_game) def get_random_move(self, vertical): moves = list(self.legal_moves(vertical)) if not ... |
assignments CIS5210-Assignments/M2/homework2.py | 0.67 | 10 | iag1 or (row + col) in diag2: return False cols.add(col) diag1.add(row - col) diag2.add(row + col) return True def n_queens_solutions(n): if n < 0: raise ValueError("n must be non-negative.") limit = (1 << n) - 1 board = [0] * n solutions = [] append = solutions.append def dfs(ro ... |
assignments CIS5210-Assignments/M4/hw4-optimized.py | 0.67 | 10 | imit): if not row[c] and not row[c + 1]: count += 1 return count def _evaluate(self, root_vertical): return self._count_legal_moves(root_vertical) - \ self._count_legal_moves(not root_vertical) def _apply_move(self, row, col, vertical, filled): b = self.board if vertical: b[row][ ... |
assignments CIS5210-Assignments/M4/homework4_dominoes_game_gui.py | 0.67 | 9 | ... it__(self, master) self.game = game self.vertical = True self.rows = rows self.cols = cols self.squares = [] for row in range(rows): row_squares = [] for col in range(cols): square = Square(self) square.grid(row=row, column=col, padx=1, pady=1) square.bind("<Button-1>", lambda ev ... |
assignments CIS5210-Assignments/M4/hw4-optimized.py | 0.67 | 8 | if not row1[c] and not row2[c]: return False else: col_limit = cols - 1 for r in range(rows): row = b[r] for c in range(col_limit): if not row[c] and not row[c + 1]: return False return True def copy(self): return DominoesGame([row[:] for row in self.board]) def successors(self, ... |
assignments CIS5210-Assignments/M4/homework4.pdf | 0.67 | 7 | ... In the DominoesGame class, write a methodget_random_move(self, vertical) which 4 returns a random legal move for the current player as a (row, column) tuple. Therandom module contains a functionrandom.choice(seq) which returns a random element from its input sequence. 2. Playing ... |
assignments CIS5210-Assignments/M3/homework3_tile_puzzle_gui.py | 0.65 | 6 | n range(rows): row_tiles = [] for col in range(cols): tile = Tile(self, puzzle_board[row][col]) tile.grid(row=row, column=col, padx=1, pady=1) row_tiles.append(tile) self.tiles.append(row_tiles) self.bind("<Up>", lambda event: self.perform_move("up")) self.bind("<Down>", lambda e ... |
assignments CIS5210-Assignments/M4/homework4.pdf | 0.65 | 6 | thevertical parameter isTrue, then the current player intends to place a domino on squares (row, col) and (row + 1, col) . If thevertical parameter isFalse, then the current player intends to place a domino on squares(row, col) and (row, col + 1). This convention will 2 be follow ... |
assignments CIS5210-Assignments/M4/homework4_dominoes_game_gui.py | 0.65 | 6 | row, col): if self.game.is_legal_move(row, col, self.vertical): self.game.perform_move(row, col, self.vertical) self.vertical = not self.vertical self.update_squares() self.master.update_status() def update_squares(self): game_board = self.game.get_board() for row in range(self.r ... |
assignments CIS5210-Assignments/M4/hw4-optimized.py | 0.65 | 6 | or c in range(cols): if not row1[c] and not row2[c]: yield r, c else: col_lim = cols - 1 for r in range(rows): row = b[r] for c in range(col_lim): if not row[c] and not row[c + 1]: yield r, c # Inline count for evaluation def count_moves(vert): cnt = 0 if vert: row_lim = rows - 1 ... |
assignments CIS5210-Assignments/M2/homework2.py | 0.63 | 5 | ... eError("n must be non-negative.") return n ** n def n_queens_valid(board): cols = set() diag1 = set() diag2 = set() for row, col in enumerate(board): if col in cols or (row - col) in diag1 or (row + col) in diag2: return False cols.add(col) diag1.add(row - col) diag2.add(row + co ... |
assignments CIS5210-Assignments/M2/homework2_gui.py | 0.63 | 5 | Rows", justify=tk.LEFT) row_label.grid(row=0, padx=5, sticky=tk.W) self.__row_entry = tk.Entry(parent, name="row") self.__row_entry.grid(row=1, padx=5, sticky=tk.EW) self.__row_entry.insert(0, 3) col_label = tk.Label(parent, text="# of Cols", justify=tk.LEFT) col_label.grid(row=2 ... |