Click here to Skip to main content
15,867,568 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Question:- An election is a contest between different candidates from various parties out of which the voters elect one as their representative. 
Objective:
The objective of the idea is to perform the voting analysis and generate the clusters based on voting.
The election voter list consists of various attributes like: Voter-id, name, address etc.
After election process, the voter list can be classified into two clusters:
The voters: who casted their votes
The voters: who have not casted their votes.
Using the teachings of DAA, Identify the technique that can be applied to analyze this situation.
Name the technique that can be used and Why?
Give the Analysis
Example for Problem solving
Algorithm/Implementation


What I have tried:

Yes, I have tried so many times but couldn't land on a concrete solution.
I went through several algorithm technique and their applications like brute force, greedy algorithm, dynamic, programming, etc
Posted
Updated 5-May-21 9:50am

1 solution

We are more than willing to help those that are stuck: but that doesn't mean that we are here to do it all for you! We can't do all the work, you are either getting paid for this, or it's part of your grades and it wouldn't be at all fair for us to do it all for you.

So we need you to do the work, and we will help you when you get stuck. That doesn't mean we will give you a step by step solution you can hand in!
Start by explaining where you are at the moment, and what the next step in the process is. Then tell us what you have tried to get that next step working, and what happened when you did.

If you are having problems getting started at all, then this may help: How to Write Code to Solve a Problem, A Beginner's Guide[^]
 
Share this answer
 
Comments
anant kumar 2021 5-May-21 15:55pm    
You do realise that I am not stuck at how to write code, right? I simply want to know the algorithm technique(eg: greedy algo, dynamic programming, brute force) used to analyse the given situation. Rest I can manage on my own.
OriginalGriff 5-May-21 16:02pm    
Yes.
You do realise that analysing the problem and evaluating solutions is exactly what this task is about, and that your thoughts, your abilities are what your teacher is trying to find. Not mine, nor anyone else.

So going "I tried, but ..." and assuming that we'll hand you the solution is -at best - counter productive ...

Read the question again.
anant kumar 2021 5-May-21 16:09pm    
I do understand what you are trying to suggest and I really appreciate it but what I really I need is- as commented earlier as well- is just the starting point of solving this question, a beginner's push and rest I'll manage myself. That's all I ask.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900