Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / NewStats: 3,207,754 members, 8,000,199 topics. Date: Tuesday, 12 November 2024 at 03:16 AM |
Nairaland Forum / Science/Technology / Programming / Is Recursive Backtracking Considered A Brute Force Approach? (2752 Views)
Programmers How Would You Approach This Task? / Help On Loading Sql Table Data Into Datagrid Using OOP Approach C# / How Will You Approach This Problem, Logic Needed? (2) (3) (4)
Is Recursive Backtracking Considered A Brute Force Approach? by SayoMarvel(m): 10:43am On Jul 13, 2011 |
Hey guys, do you feel recursive backtracking is a form of brute force or do you see it as something more clever and pretty? |
Re: Is Recursive Backtracking Considered A Brute Force Approach? by Fayimora(m): 12:11pm On Jul 13, 2011 |
No its even faster than a brute force solution as you are not testing every possible input. However, you should only use it when your problem is one that can have a very quick test that determines whether your problem can be be completed to a correct solution. I think it can only be the same as brute force or even slower when you use it wrongly. Theres a concept i read about that has to do with this but i really cant remember its name, would update if i remember. |
Re: Is Recursive Backtracking Considered A Brute Force Approach? by Shimao(m): 12:14am On Jul 14, 2011 |
Its neither brute force or heuristic, its in between,sort of a metaheuristic. Like Fayimora said, its efficiency depends on you coming up with a test the quickly determines if a path can lead to a solution. |
Re: Is Recursive Backtracking Considered A Brute Force Approach? by lojik(m): 3:04am On Jul 15, 2011 |
in backtracking, there's a quick test or partial test to check if the path can lead to an acceptable solution but in brute forcing, all tests are treated as complete not incremental. They are not the same. brute forcing will take so much longer where backtracking will work but i don't believe backtracking will work in cases that require a brute force approach (situations where there's no pre-determinable path to the solution). |
Re: Is Recursive Backtracking Considered A Brute Force Approach? by SayoMarvel(m): 5:06am On Jul 16, 2011 |
Okay. Thanks guys. I think if I get you right, the thin line is draw in your way of use of backtracking. If used improperly, it will take processor time and memory footprint just like brute force. I'll post a practical problem here and we'll try to use both techniques and analyse them. Once again, thanks. |
(1) (Reply)
Connecting To A Remote Database / How To Create A SHOUTBOX (codes And Script) / A Problem With Java Gui Design
(Go Up)
Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health religion celebs tv-movies music-radio literature webmasters programming techmarket Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10) Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 11 |