-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMatrix.h
More file actions
31 lines (23 loc) · 696 Bytes
/
Matrix.h
File metadata and controls
31 lines (23 loc) · 696 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
//
// Created by duni on 21/01/2020.
//
#ifndef PROBLEMSOLVER_MATRIX_H
#define PROBLEMSOLVER_MATRIX_H
#include "Searchable.h"
#include "Point.h"
#include <vector>
class Matrix : public Searchable<Point> {
private:
State<Point> *initialState;
State<Point> *goalState;
vector<State<Point> *> *matrix;
int numOfRows = 0;
int numOfColumns = 0;
public:
Matrix(vector<vector<double >> *, Point *, Point *);
State<Point> *getInitialState() override;
State<Point> *getGoalState() override;
list<State<Point> *> *getAllPossibleStates(State<Point> *s) override;
double getDistance(State<Point> *, State<Point> *) override;
};
#endif //PROBLEMSOLVER_MATRIX_H