Undertaking is mostly* prevented by correct road positioning.
I don't really buy this. Take the A1(M) between Welwyn and Stevenage, which is a pretty notorious section of 2-lane motorway.
Going south, there's an incline just south of Stevenage which combined with being located just south of a junction, results in a lot of traffic bunching. Hang back a little to get a run up the incline, and you *will* be undertaken by some doltz who then cuts in front and messes up your attempt to maintain speed up the incline. Then, later on, there's always a fuss at the point where it goes from 2 to 3 lanes (why on earth the extra lane starts on the left side is beyond me), people dither at the point of choosing which lane to go in. Again, good practice to hang back just a bit which then allows a clean transition into the 3 lanes, but again you'll have some prat undertaking and then causing something in front to get stuck in the third lane blocking everything up.
Cameras aren't the answer to any of this, proper training, licensing, repeat assessment and targeted enforcement are.
If you think it's dire here I'd caution you against going abroad to most countries
(Which isn't to say there isn't room for improvement of course, just that we might not be quite as terrible as we think
)
We are worst in the London and home counties area, and a few other urban areas too. But drive somewhere like Mid or North Wales, or the North-East and the driving standard is pretty good.
If other countries are worse, I dread to think if they're worse than the London / south-east area!
There is a general problem on motorways that moving to the right is assumed to 'get you there quicker'. This means that the outside lane tends to saturate first. The most efficient way for a multi-lane road is for all lanes to travel at approximately the same speed (with a practical exception of the inside lane on a 3 or 4-lane road to allow for slow vehicles and those using on and off slip roads). So if the outermost lane starts to slow, then reduce the speed limit of all lanes to that speed - bearing in mind that the speed limit is a maximum. That would be easy to achieve without human intervention especially in a variable speed limit section.
Eventually, drivers would realise that in heavy traffic, forcing their way into the outside lane most of the time isn't worth the effort.
That would only really hold true if everyone was driving at the same speed. For as long as you have people fluttering along at lower speeds, or - worse - those who fail to be able to maintain any kind of constant speed, you're going to have people gravitating towards the rightmost lanes. This may not hold true on lighter used motorways, but for something like Hertfordshire to London on the A1, for most of the day if you want to do 70 mph you're going to be in the right-hand lane for the majority of the run. It simply isn't worth the hassle of keep moving in as you'll be doing it constantly. With good situational awareness this shouldn't need to be a problem, as if you're keeping awareness of what's going on behind then it's quite easy to move left if someone is approaching and wants to pass (though how many times do people make a thing of passing, and then cut in front - really don't get why people do this).