0xisk / Linux-Assistant

Linux Assistant will facilitate Linux utilities to you, and allows you controlling it.
0 stars 0 forks source link

Searching Algorithm #11

Open 0xisk opened 5 years ago

0xisk commented 5 years ago

Implement searching algorithm for searching for directory/file locations with the best complexity .

Expected input: <directory/file> ? Expected output: <directory/file path>*

? = 'Optional [0,1]'

0xisk commented 5 years ago

@KirollosNasr Review last commit.

KirollosNasr commented 5 years ago

the searching algorithm used runs pretty well, but because it use find command, it can take a while. as it scan the whole system at real time. I think we can use locate command for better performance. Also the way of search seems to be repetitive.it can be reduced.

0xisk commented 5 years ago

@KirollosNasr Ok very well.

KirollosNasr commented 5 years ago

I uploaded locating.py script

KirollosNasr commented 5 years ago

I'll upload a new version of searching search.py

KirollosNasr commented 5 years ago

I uploaded the new version of searching That focuses on performance as well. It has two different implementations, one for real time scanning using find command And the other uses locate command with an option to update its database