Apogeum12 / find-Max-and-Min-vectors-from-n-vectors

Simple program to find Max and min vectors from the Matrix, with given n vectors on input.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

find-Max-and-Min-vectors-from-n-vectors

Simple program to find Max and min vectors from the Matrix, with given n vectors on input.

About code

I writed algorithm code on Windows, so on linux or mac may be others compile ways. But I created CMakeLists.txt file and I think that is very similar compiling proces.

Prerequisites

On Windows you must install Cmake and MinGW application before compile algorithm.

How compile the algorithm

  • Open Cmd terminal As Admin in folder with code.
    • Example:
> cd C:\CMake\MaxMinVec
  • Next:
> cmake -G "MinGW Makefiles" .

test1

  • After finish build in cmd:
> make -j

test2

Running the tests

  • Open program in bin folder.
> cd bin
> maxminvec

Testing

  • Test for Matrix 3x2
> 1 0
> 1 1
> 9 7
> Max: 9 7
> Min: 1 0

test4

About

Simple program to find Max and min vectors from the Matrix, with given n vectors on input.

License:MIT License


Languages

Language:C++ 90.4%Language:CMake 9.6%