Digital PR for links in SEO Fundamentals - Time & Space Complexity
When using Digital PR to build links, it's important to understand how the effort and results grow as you increase your outreach or content volume.
We want to know how the time and work needed change when you try to get more links.
Analyze the time complexity of the following Digital PR outreach process.
// Pseudocode for Digital PR link outreach
for each journalist in list_of_journalists:
create personalized pitch
send email pitch
if journalist responds positively:
follow up and build relationship
secure link placement
This code represents reaching out to journalists one by one, personalizing each message, and following up to get links.
Look at what repeats as the input grows.
- Primary operation: Looping through each journalist to send pitches.
- How many times: Once for every journalist in the list.
As you add more journalists, the number of emails and follow-ups grows directly with that number.
| Input Size (n) | Approx. Operations |
|---|---|
| 10 | About 10 personalized emails and follow-ups |
| 100 | About 100 personalized emails and follow-ups |
| 1000 | About 1000 personalized emails and follow-ups |
Pattern observation: The work grows in a straight line as you add more contacts.
Time Complexity: O(n)
This means the time needed grows directly in proportion to the number of journalists you contact.
[X] Wrong: "Adding more journalists won't increase my work much because I can send the same email to all."
[OK] Correct: Personalized outreach takes time for each contact, so work grows with each added journalist.
Understanding how your outreach effort scales helps you plan realistic campaigns and shows you can think about workload growth clearly.
What if you automated part of the pitch creation? How would that change the time complexity?