Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1100313
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T00:51:39+00:00 2026-05-17T00:51:39+00:00

Currently I am loooking for a way to develop an algorithm which is supposed

  • 0

Currently I am loooking for a way to develop an algorithm which is supposed to analyse a large dataset (about 600M records). The records have parameters “calling party”, “called party”, “call duration” and I would like to create a graph of weighted connections among phone users.

The whole dataset consists of similar records – people mostly talk to their friends and don’t dial random numbers but occasionaly a person calls “random” numbers as well. For analysing the records I was thinking about the following logic:

  1. create an array of numbers to indicate the which records (row number) have already been scanned.
  2. start scanning from the first line and for the first line combination “calling party”, “called party” check for the same combinations in the database
    sum the call durations and divide the result by the sum of all call durations
    add the numbers of summed lines into the array created at the beginning
  3. check the array if the next record number has already been summed
    if it has already been summed then skip the record, else perform step 2

I would appreciate if anyone of you suggested any improvement of the logic described above.

p.s. the edges are directed therefore the (calling party, called party) is not equal to (called party, calling party)

Although the fact is not programming related I would like to emphasize that due to law and respect for user privacy all the informations that could possibly reveal the user identity have been hashed before the analysis.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T00:51:40+00:00Added an answer on May 17, 2026 at 12:51 am

    As always with large datasets the more information you have about the distribution of values in them the better you can tailor an algorithm. For example, if you knew that there were only, say, 1000 different telephone numbers to consider you could create a 1000×1000 array into which to write your statistics.

    Your first step should be to analyse the distribution(s) of data in your dataset.

    In the absence of any further information about your data I’m inclined to suggest that you create a hash table. Read each record in your 600M dataset and calculate a hash address from the concatenation of calling and called numbers. Into the table at that address write the calling and called numbers (you’ll need them later, and bear in mind that the hash is probably irreversible), add 1 to the number of calls and add the duration to the total duration. Repeat 600M times.

    Now you have a hash table which contains the data you want.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm looking for a way to control which monitors are currently being used via
I'm currently investigating a way to develop a website that will allow me to
I'm looking to develop an application which will have three different types of users,
I am currently planning to develop a web-app which will allow a 3rd party
I am currently looking for a way to remove fullstops from a string in
I'm currently looking for a way to provide the user with being able to
I'm currently looking for a way to launch the default browser application on Android
Is there any way to speed up this Magento code? Currently it is looking
I'm currently looking for a way to add data to an already compiled ELF
I'm currently looking for a way to search a big database (500MB - 10GB

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.